bug-wget
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Bug-wget] Wget Question


From: Ray Satiro
Subject: Re: [Bug-wget] Wget Question
Date: Wed, 27 Jun 2012 23:17:27 -0700 (PDT)

> From: Tim Ruehsen <address@hidden>

>To: address@hidden 
>Cc: Michael Tarkowski <address@hidden> 
>Sent: Wednesday, June 27, 2012 4:43 AM
>Subject: Re: [Bug-wget] Wget Question
> 
>Hi Michael,
>
>> I'm trying to use wget 1.13.4 from a command line to access a web page
>> using Digest Authentication and I keep getting HTTP/1.1 401 Unauthorized
>> response.   Below is my code and the response.  Any suggestions would be
>> appreciated.
>> 
>> wget --debug --server-response --user-agent="" --ignore-case --user=admin
>> --password=abc -O - http://10.107.70.21:8080/admin/console/View.jsp
>>...
>
>I assume that you double checked username and password, e.g. by opening your 
>URL with a web browser.
>
>Well, some servers need a proper "User-Agent" header in the request to behave 
>as expected. Try again without --user-agent .
>If it doesn't work, try it with --user-agent="Mozilla/5.0".
>
>If that still doesn't work, try simulating your web browser by providing 
>additional header lines with --header option, especially the Accept and 
>Accept-Language headers.
>
also try curl and see what happens
curl -v -u user:pass --digest http://10.107.70.21:8080/admin/console/View.jsp

might be related to
http://savannah.gnu.org/bugs/?33830
?



reply via email to

[Prev in Thread] Current Thread [Next in Thread]