Re: [PATCH] Addition of trailer headers in HTTP requests generated by libcurl
Date: Sat, 19 Jan 2013 12:27:06 +0000
On 17 Jan 2013, at 12:35, Chrysovaladis Datsios wrote:
> this is a patch for the feature request as described in
> the feature is a standard in
I welcome this improvement but I agree with Dan Fandrich that it would be more useful if implemented as a callback. My use cases for request trailers involve signing operations on the message body where it's expensive to buffer the whole request before starting to send the body… especially as parsing the trailer would be optional.
> Example case: Chunked PUT request with Trailer headers.
> PUT /myfile HTTP/1.1
> Host: 10.8.60.209
> Accept: /
> Transfer-Encoding: chunked
> Trailer: mytrailerheader
> Expect: 100-continue
> ....first chunk of data......
> .....second chunk of data.....
> mytrailerheader: myvalue
Why is the client sending Expect: 100-continue here? As an aside, the Accept: header also looks invalid.
-- Tim Bannister – isoma_at_jellybaby.net
- application/pkcs7-signature attachment: smime.p7s