Re: wget --spider

2021-09-30 Thread Sergey Ponomarev
The gnu wget in spider mode shows "Length: 122 [text/html]" even without -S. Actually the -S just shows headers. BTW for a less code and more clearness instead of the spider option wget may just send a HEAD request with --method=HEAD. In conjunction with recent patch with -post-data this will allo

Re: wget --spider

2021-09-30 Thread Doug Clapp
I think what you get may depend on what version of BusyBox you are using. I check 3 different versions I happen to have. v1.24.0.git shows only "-s|--spider" and seems to give no output except its return code. v1.27.2 shows "--spider" as well as "-S|--server-response." Using v1.27.2, busybox w

Re: wget --spider

2021-09-30 Thread Jake
Hi Ercolino, This is due to --spider issuing a GET request instead of a HEAD request. I submitted a patch on 7th August for this. Details and patch copied here: In GNU wget[1], `--spider' first issues a HEAD request, then iff HEAD fails, issues a GET request. In Busybox wget, only a GET request

Re: wget --spider

2021-09-30 Thread Ercolino de Spiacico
Thanks Nicholas I sort of got to the same conclusion that -S is somehow referring to --spider or a sort of alias to it. There is one thing that puzzles me though, the -S will show the Server response indeed but also download the file. This latter action defeats the concept for my purpose (ch