Hi,
The exit status 8 means "Server issued an error response." But I think
the exit status may not be considered as an error in the specific use
case. Is there a way to make wget return 0 instead?
$ wget -q --spider -S -o /dev/null --max-redirect 1
https://httpbin.org/absolute-redirect/3 || echo
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
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