[Bug-wget] Why limit --max-redirect can results in exit_status 8?

2019-08-09 Thread Peng Yu
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

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

2019-08-09 Thread Tim Rühsen
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

[Bug-wget] Does `wget -q -O /dev/null -S -o- url` ignore response body?

2019-08-09 Thread Peng Yu
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