cURL / Mailing Lists / curl-library / Single Mail


Re: how to implement chunk extensions

From: Daniel Stenberg <>
Date: Fri, 23 Aug 2013 20:41:56 +0200 (CEST)

On Fri, 23 Aug 2013, Inca R wrote:

> Because the chunk-extensions are part of the buffer but doesn't count as
> part of the chunk size the current implementation has to be changed.

Well of course the existing code needs to get changed to support a new
feature. That is sort of obvious, at least to me.

>> An alternative approach would be to introduce a function that can be used
>> from within the read callback that sets the extension. Like a setopt()
>> version.
> I'm not familiar with all the internals of libcurl, but a good approach
> maybe to separate the actual payload buffer and the headers ( chunk size,
> chuck extensions, chunk delimiter =CRLF ). And compose the message at the
> time you write it to the wire.

Yes, but let's first discuss and agree on an API for how an application author
would use/control this feature. Then we can discuss the implementation.

List admin:
Received on 2013-08-23