My Code:
var buffer=postClient.UploadData(url,"POST",Encoding.UTF8.GetBytes(urlInfo.Data));
//postClient is a WebClient with requestHearder Set like below:
Accept-Encoding: gzip
Accept: application/json
Content-Type: application/json
buffer length is always short than the true response length.
I use fiddler to intercept the communication.
response headers:
Content-Type: application/json; charset=utf-8
Transfer-Encoding: chunked
I wonder how to make the webclient fetch the all chunked data at once, any ideas?
Off course, I'll not use http 1.0, cause it don't support gzip, only send the plain text.