On Tue, 7 Oct 2003, Hrvoje Niksic wrote:
> My first impulse was to bemoan Wget's antiquated HTTP code which doesn't
> understand "chunked" transfer. But, coming to think of it, even if Wget
> used HTTP/1.1, I don't see how a client can send chunked requests and
> interoperate with HTTP/1.0 servers.
>
> The thing is, to be certain that you can use chunked transfer, you
> have to know you're dealing with an HTTP/1.1 server. But you can't
> know that until you receive a response. And you don't get a response
> until you've finished sending the request. A chicken-and-egg problem!
The only way to deal with this automaticly, that I can think of, is to use a
"Expect: 100-continue" request-header and based on the 100-response you can
decide if the server is 1.1 or not.
Other than that, I think a command line option is the only choice.
--
-=- Daniel Stenberg -=- http://daniel.haxx.se -=-
ech`echo xiun|tr nu oc|sed 'sx\([sx]\)\([xoi]\)xo un\2\1 is xg'`ol