Re: New zlib patch (supports gzip encoding)

Hrvoje Niksic <[email protected]> Fri, 29 Apr 2005 20:07:29 +0200
Newsgroups gmane.comp.web.wget.patches
Message-ID <[email protected]>
Mark Atkinson <[email protected]> writes:

> Yes, you're absolutely correct.  This will actually cause wget to
> assert on Apache servers (since contlen will be -1).  I had only
> added this to work around a server that would return a body with the
> correct content length when HEAD would actually return a error (404,
> etc..).

You can use --no-http-keep-alive to work around such broken servers
(unless, of course, you really need keep-alive).

> This was causing that error html to be 'pre-pended' on the next page
> request -- corrupting my retrieval, because the CLOSE_FINISH() macro
> takes no action with keep_alive enabled.

If more people report this problem, I'll just revert to using
CLOSE_INVALIDATE after HEAD.