Connecting Tech Pros Worldwide Help | Site Map

How to read the content of "Transfer-Encoding: chunked" header

Newbie
 
Join Date: Mar 2007
Posts: 3
#1: Apr 11 '07
Can anybody tell me how to get or read the value of transfer encoding.
I got the HTTP Response header as "Transfer-Encoding: chunked".But i can't get the chunk size or the chunked data.
Without getting those details i cant read the content of the site.If Content-Length is in the HTTP header,i can read upto that length.But in this Transfer-Encoding case,i cant know any other details except the value "chunked".So suggest me to read the content of the site using Transfer-Encoding.
Newbie
 
Join Date: Jul 2009
Posts: 1
#2: Jul 13 '09

re: How to read the content of "Transfer-Encoding: chunked" header


To resolve the issue, you will need to upgrade the HTTP protocol by doing something like this:

YourRequestObject.ProtocolVersion = HttpVersion.Version10

Just catch for content encoding set to gzip and then set the above.
Hope this helps
Reply