cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: [PATCH] Addition of trailer headers in HTTP requests generated by libcurl

From: Linus Nielsen Feltzing <linus_at_haxx.se>
Date: Fri, 18 Jan 2013 15:48:20 +0100

On 01/18/2013 02:51 PM, Chrysovaladis Datsios wrote:
> The option is set before the curl_easy_perfom(1). The linked list of
> HTTP trailer headers contains some initial values of those headers.
> The initial values are not the values that will be sent finally at the
> end of the transfer. The final values of the HTTP trailer headers can
> be known or calculated after the transfer has been performed. For
> this, function curl_slist_replace(3) can be used to alter the initial
> values to the real ones. The call of the new function
> curl_slist_replace(3) inside a callback function can be used for that.

Something tells me that this might benefit from a new callback, to be
called when it is time to output the trailer headers.

Linus
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2013-01-18