Thank you
Adding the --auth-no-challenge switch allows the file to download.


Regards,
Tim Paulson
DCIM Field Service Engineer

Sunbird Software • 200 Cottontail Lane • Somerset, NJ 08873 USA
Office/Cell: 1.605.609.7600
[email protected]  • www.SunbirdDCIM.com 


-----Original Message-----
From: Darshit Shah [mailto:[email protected]]
Sent: Monday, February 22, 2016 2:21 PM
To: Tim Paulson <[email protected]>
Cc: [email protected]
Subject: Re: [Bug-wget] newer versions of wget broke file download

On 02/22, Tim Paulson wrote:
>With wget version 1.10.2 it would successfully download a file from our web 
>application using the command below.
>wget -d -t 3 --http-user=tim --http-passwd=T3stwg3t! 
>--no-check-certificate https://66.115.223.141/admin/backups/latest
>
>With newer versions of wget for Windows or Linux, the command just downloads 
>and saves the login page instead of the actual file to be downloaded.
>
>Is there a way to make new versions of wget work like version 1.10.2 did?
>
>See screenshot comparing  Windows 1.10.2 vs Linux 1.12 in debug mode
>
>[cid:[email protected]]
>
The only major difference I see in the two images is that Wget 1.10.* sends the 
username and password as Basic Auth by default. While Wget 1.12 waits for the 
server to request authorization. To send the authorization without having to 
wait for the server to ask, use the `--auth-no-challenge` switch to send basic 
credentials by default.
>
>Regards,
>Tim Paulson
>DCIM Field Service Engineer
>
>Sunbird Software * 200 Cottontail Lane * Somerset, NJ 08873 USA
>Office/Cell: 1.605.609.7600
>[email protected]<mailto:[email protected]>  * 
>www.SunbirdDCIM.com<http://www.sunbirddcim.com/>
>



--
Thanking You,
Darshit Shah

Reply via email to