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

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • VeeraLakshmi
    New Member
    • Mar 2007
    • 3

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

    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".S o suggest me to read the content of the site using Transfer-Encoding.
  • Munir Syed
    New Member
    • Jul 2009
    • 1

    #2
    How to read chunked data

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

    YourRequestObje ct.ProtocolVers ion = HttpVersion.Ver sion10

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

    Comment

    • beyazgolge
      New Member
      • Dec 2012
      • 1

      #3
      Thank you

      Munir Syed thank you very much. The problem is solved



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

      YourRequestObje ct.ProtocolVers ion = HttpVersion.Ver sion10

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

      Comment

      Working...