When trying to use the command line on Windows to wget a file, I'm getting a 404 error

C:\Users\xxxx>wget + http://www.restaurantanzu.com/PDFs/Dinner908.pdf;
SYSTEM_WGETRC = c:/progra~1/wget/etc/wgetrc
syswgetrc = C:\Program Files\GnuWin32/etc/wgetrc
--2011-06-07 15:59:19--  http://+/

Resolving . 67.199.65.121
Connecting to |67.199.65.121|:80... connected.
HTTP request sent, awaiting response... 404 Not Found
2011-06-07 15:59:21 ERROR 404: Not Found.
link|improve this question
feedback

migrated from stackoverflow.com Jun 7 '11 at 23:56

This question came from our site for professional and enthusiast programmers.

2 Answers

Why is the + right after the wget command? Looks like wget is trying to resolve/pull that as a URL based on the end, the "http://+/"

Try it without the +. In fact, try it with just:

wget http://www.restaurantanzu.com/PDFs/Dinner908.pdf

This works for me on a linux box.

link|improve this answer
feedback

Drop the + (as mentioned by @baraboom) and also drop the semi-colon at the end of the line.

link|improve this answer
feedback

Your Answer

 
or
required, but never shown