Hrvoje Niksic wrote:
> Please be aware that Wget needs to know the size of the POST data
> in advance. Therefore the argument to @code{--post-file} must be
> a regular file; specifying a FIFO or something like
> @file{/dev/stdin} won't work.
There's nothing that says you have to read the data after you've started
sending the POST. Why not just read the --post-file before constructing the
request so that you know how big it is?
> 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.
How do browsers figure out whether they can do a chunked transfer or not?
Tony