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 .
Connecting to ||:80... connected.
HTTP request sent, awaiting response... 404 Not Found
2011-06-07 15:59:21 ERROR 404: Not Found.

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.


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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy