I have a server response with Transfer-Encoding: chunked
HTTP/1.1 200 OK
Server: nginx/1.2.1
Date: Mon, 18 Feb 2013 08:22:49 GMT
Content-Type: application/json; charset=utf-8
Transfer-Encoding: chunked
Connection: keep-alive
Vary: Accept-Encoding
c7
{<some json data>}
0
See that c7 chunk size before json data.
How can I read a raw response stream without chunks in Windows Phone using HttpWebResponse
?
Hint: to make sever disable chunked output, I just have to specify HTTP/1.0 protocol version. But I don't know how to do that as there is no ProtocolVersion
property in HttpWebRequest
class in Windows Phone or Silverlight