bug-wget
[Top][All Lists]
Advanced

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

Re: [Bug-wget] Does `wget -q -O /dev/null -S -o- url` ignore response bo


From: Tim Rühsen
Subject: Re: [Bug-wget] Does `wget -q -O /dev/null -S -o- url` ignore response body?
Date: Fri, 9 Aug 2019 20:36:29 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0

On 09.08.19 18:06, Peng Yu wrote:
> Hi,
> 
> I just want to retrieve the response header instead of the response body.
> 
> Does `wget -q -O /dev/null -S -o- url` still download the response
> body, but then dump it to /dev/null? Or wget is smart enough to know
> the destination is /dev/null so that it will not download the response
> body at all? Thanks.

/dev/null is just a another file.

Try with --spider. It will send a HEAD request instead of a GET request
- thus no body is downloaded. The server just serves the header as if it
was a GET request.

Regards, Tim

Attachment: signature.asc
Description: OpenPGP digital signature


reply via email to

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