zc2
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?
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?
ASKER
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.
I have no windows systems, so i cannot help with IIS testing.
ASKER
noci,
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.
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.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
If you need a library that can handle that mode. Check the sources of https://curl.haxx.se