Log in

View Full Version : HTTP 1.1 - "Transfer-Content-Encoding: chunked" - Support on PPC (EVC4.0)


nishith81
10-12-2007, 08:46 AM
Hi,

We are using Embedded Visual C++ 4.0 for developing a module that communicates with an HTTP server. The server supports only HTTP 1.1, and sends data as chunked data using the HTTP 1.1 "Transfer-Content-Encoding" header.

Does the default WinInet InternetReadFile method in EVC 4.0 support reading chunked data from the server? It doesn't look like. The response that I get from this method, simply dumps the whole response from the server. The limitation seems to be in the WinINet
implementation in the device SDK.

Visual Studio 2005 support for Windows Mobile, seems to support this feature, but my module cannot be upgraded to Visual Studio yet.

What would be the ideal solution? Retrieving the chunked response and decoding it to compose the actual response?

Ni****h