Re: [Bug-wget] wget not terminating after file acquisition

2013-03-23 Thread joep
Hi Darshit, Giuseppe, I'll try to dig a bit deeper using a packet analyzer, BTW I've used wget many times before to download from the Internet and never had any issues either. -- Regards Joe P. On 24/03/13 03:13, Darshit Shah wrote: Could this be because the server r

Re: [Bug-wget] An option to save error pages

2013-03-23 Thread Giuseppe Scrivano
"CCC DDD" writes: > An option for wget to download content after non-200 HTTP code would be very > useful. Does --content-on-error solve your problem? -- Giuseppe

Re: [Bug-wget] An option to save error pages

2013-03-23 Thread Darshit Shah
A generic --force option you mean? Force is a common switch in most applications. In fact, if you are so intent on getting that information, use the --debug option. It prints this data along with the other header information, etc. For e.g.: > wget -d www.google.com/asdfghj > ... [Extra Data snipp

[Bug-wget] An option to save error pages

2013-03-23 Thread CCC DDD
An option for wget to download content after non-200 HTTP code would be very useful. For example, a HTTP/1.x 404 NOT FOUND response with nicely-formatted custom "404 page" HTML in the response body. Or a 502 error that generates a detailed page with diagnostic information. Additionally badly wr

Re: [Bug-wget] wget not terminating after file acquisition

2013-03-23 Thread Darshit Shah
Could this be because the server responded with Length: Unspecified? Probably a lack of the Length attribute made wget keep waiting for further data? As suggested by Giuseppe, please do check with a packet analyzer to test whether the Server is closing is closing it's connection. If not, then the

Re: [Bug-wget] wget not terminating after file acquisition

2013-03-23 Thread Giuseppe Scrivano
Hi, I couldn't reproduce it here, wget seems to terminate when the TCP connection is closed. Are you sure the server doesn't intentionally leave the TCP connection opened? Could you use use a packet analyzer to see if it is closed? Thanks joep writes: > Hi, > I'm using wget to access the