Wget developers,

 

This may not be considered a bug, but it is unexpected behavior for me,
and thus I'm reporting it here. I'm using GNU Wget 1.10.2 with the
following options:



wget -r -x -p --save-headers 192.168.0.1

 

The web server requires a username and password for the default page,
and thus I receive a 401 Unauthorized response. I would expect that the
HTML data that was returned, including the HTTP headers, would be saved
in the file 192.168.0.1/index.html. But instead, there are no files
written, and the directory isn't even created. In most cases, it would
make sense that nobody would want to save this data, so I can understand
this behavior. But I would like to save whatever data is returned to me,
even if it may not be what I'm expecting. I'm receiving the same results
for a 403 Forbidden response, and this is probably the case for other
ones as well. The 401 outputs "Authorization failed." and the 403
outputs "xx:xx:xx ERROR 403: Forbidden." after execution.

 

Would this be considered a bug, or is this just an undocumented feature?
If it's not considered a bug, could a command line option be added that
saves the data from 4xx error code responses rather than just quitting?
Basically, if the connection is successful, and something is returned, I
want to keep it, no matter what it is.

 

Thank you,

Chris Dunkle

Reply via email to