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.
--
/ daniel.haxx.se
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html