Link to home
Start Free TrialLog in
Avatar of zc2
zc2Flag for United States of America

asked on

How to deal with "Transfer-Encoding: chunked" in ISAPI extension?

I have an ISAPI extension web application implemented in C++
A client does a POST with the "Transfer-Encoding: chunked" header.
I cannot find an example or a documentation how to manage such type of request in ISAPI extension.
I put a debugger breakpoint in my ISAPI callback function and it hits only once with the first chunk in the available buffer.
Could somebody point me to a working example or/and documentation?
Avatar of noci

Chunked encoding is HTTP/1.1    if you can transfer for HTTP/1.0  then chunked encoding is not possible.

If you need a library that can handle that mode. Check the sources of
Avatar of zc2


Yes, I use CURL to simulate the request when I debug the ISAPI extension code. The protocol is obviously HTTP/1.1
libcurl has the sources for handling chunked transfers. So you can compare to that code if you need chunked encoding.
I have no windows systems, so i cannot help with IIS testing.
Avatar of zc2


thank you, but libcurl is a client library, right? And it is probably completely different from the API we have in Windows IIS server. I need not a theoretical concept (I know how the chunked HTTP works), however I need to know how to get all the chunks handling the ISAPI callback.
Avatar of zc2
Flag of United States of America image

Link to home
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial