HTTP Chunked Encoding - HttpWatch
HTTP Chunked Encoding - HttpWatch
(/)
HTTP Gallery
Jump to ...
Chunked encoding is useful when a large amount of data is being returned to the client and the total size of the response may not be known
until the request has been fully processed. An example of this is generating an HTML table of results from a database query. If you wanted to
use the Content-Length header you would have to buer the whole result set before calculating the total content size. However, with chunked
encoding you could just write the data one row at a time and write a zero sized chunk when the end of the query was reached.
Example 9
This image (chunkedimage.aspx) has been supplied* to your browser using a 1 KB chunk of data every 0.1 seconds:
https://www.httpwatch.com/httpgallery/chunked/ 1/3
7/4/2017 HTTPChunkedEncoding|HttpWatch
(* if you are accessing this page through a proxy it may remove the chunked encoding)
1. Open HttpWatch by right clicking on the web page and selecting HttpWatch from the context menu
4. Select the entry for this HTML page and go to the Streams tab
5. The number of chunks is displayed in this tab and the format of the length prexed chunks can be seen after the response
headers.
(/DOWNLOAD/)
BUY NOW (/BUY/)
HttpWatch
Features (/features/httpdebugger.aspx)
Compare Editions (/editions.aspx)
New in Version 10.x (/newin10x.aspx)
Download (/download/)
Pricing (/buy/)
Our Customers
Who is using it? (/#customers)
What are they saying? (/#quotes)
Support
Technical Support (/support/)
About Us (/company/)
Contact Us (/company/)
Blog (http://blog.httpwatch.com)
Twitter (https://twitter.com/httpwatch)
Search (/search/) Terms & Conditions (/company/terms.aspx) Privacy Policy (/company/privacy_policy.aspx) Copyright (/company/copyright.aspx)
https://www.httpwatch.com/httpgallery/chunked/ 2/3
7/4/2017 HTTPChunkedEncoding|HttpWatch
https://www.httpwatch.com/httpgallery/chunked/ 3/3