Author Topic: Wget Error 404: Not Found.  (Read 5250 times)

sdjf

  • Sr. Member
  • ****
  • Posts: 447
    • View Profile
    • http://www.sdjf.wordpress.com and http://www.sdjf.esmartdesign.com
Wget Error 404: Not Found.
« on: June 04, 2006, 09:41:15 am »
I haven't been able to figure out how to get wget working on URLs that contain # signs before the file of interest.

Example:

Jun04# wget -O computer/msmtp-config -nc http://msmtp.sourceforge.net/msmtp.html#Configuration-files
--06:17:48--  http://msmtp.sourceforge.net/msmtp.html%23...iguration-files
           => `computer/msmtp-config'
Connecting to msmtp.sourceforge.net:80... connected!
HTTP request sent, awaiting response... 404 Not Found
06:17:49 ERROR 404: Not Found.

Jun04#

Same error results even when I do not specify -O or -P option, and when tried escaping with a \ or adding single or double quotes.   Arrgh!!!

I have GNU Wget 1.7  on an sl5500 using Sharp ROM 2.38.

thanks,
sdjf
http://www.sdjf.esmartdesign.com
http://www.sdjf.wordpress.com
-----------------
sl5500 running Sharp ROM 2.38 (dead batteries)
sl6000L running Sharp ROM 1.12 (still working)
Opera 7.25 and 7.30
Socket CF 56k modem
3Com USB Ethernet Adapter
Toshiba, Lexar and Kingston SD cards
Lexar, Kingston and Transcend CF cards

Stubear

  • Hero Member
  • *****
  • Posts: 1164
    • View Profile
    • http://
Wget Error 404: Not Found.
« Reply #1 on: June 04, 2006, 05:38:25 pm »
Try removing # and everything following it.

# is used for internal page anchors so you will get the whole page anyway.

Stu
SL-C1000, Hand converted to English with Japanese Input
Running X apps via X/Qt
iRiver USB host cable; Diatec P-Cord usb power cable (extendable); Acro's Reel Cable USB (A to A, B, Mini-B,  & Mini-B 8pin); GreenHouse 1Gb PicoDrive+; 2x256Mb Hagiwara SD cards; 128Mb Transcend CF card; 512Mb PQI CF card; AmbiCom WL1100C-CF 11B WLAN card

sdjf

  • Sr. Member
  • ****
  • Posts: 447
    • View Profile
    • http://www.sdjf.wordpress.com and http://www.sdjf.esmartdesign.com
Wget Error 404: Not Found.
« Reply #2 on: June 05, 2006, 12:59:23 am »
Quote
Try removing # and everything following it.

# is used for internal page anchors so you will get the whole page anyway.

Stu
[div align=\"right\"][a href=\"index.php?act=findpost&pid=129760\"][{POST_SNAPBACK}][/a][/div]


Stubear,

Thanks for taking the time to answer.  Now that you say that, it's incredibly simple.  Duh!

I just didn't realize those pound signs were sending the reader to another spot on the same page.   It's the kind of question you can't find the answer to on Google unless you already know the answer...

Thanks again,
sdjf
http://www.sdjf.esmartdesign.com
http://www.sdjf.wordpress.com
-----------------
sl5500 running Sharp ROM 2.38 (dead batteries)
sl6000L running Sharp ROM 1.12 (still working)
Opera 7.25 and 7.30
Socket CF 56k modem
3Com USB Ethernet Adapter
Toshiba, Lexar and Kingston SD cards
Lexar, Kingston and Transcend CF cards