bug-wget
[Top][All Lists]
Advanced

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

Re: Why wget doesn't download data when the HTTP status is 4xx?


From: Tim Rühsen
Subject: Re: Why wget doesn't download data when the HTTP status is 4xx?
Date: Mon, 11 May 2020 10:03:53 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.8.0

Wget doesn't do that on default. Add --content-on-error to get the
content even with 4xx errors.

Tim

On 11.05.20 00:09, Peng Yu wrote:
> Hi,
> 
> $ curl --verbose ...
> ...
> < HTTP/1.1 403 Forbidden
> ...
> <
> { [359 bytes data]
> 100 81498    0 81498    0     0  50214      0 --:--:--  0:00:01 --:--:-- 50183
> 
> When the above 403 code occurs, curl still can download the data. But
> wget just gives up.
> 
> Is there a way to let wget download the data even the HTTP status is
> 4xx? Thanks.
> 

Attachment: signature.asc
Description: OpenPGP digital signature


reply via email to

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