Transfer-Encoding chunked Encoding in HTTP 1.1 | haohtml's blog
Transfer-Encoding chunked Encoding in HTTP 1.1Posted on 2010/07/24 by admin
The Content-Length header is contained in the HTTP Headers sent by the corresponding user requests of most
chunked transfer encoding (Chunked transfer encoding) is a transport data mechanism in Hypertext Transfer Protocol (HTTP) that agrees that HTTP is sent by application server to the client application ( Data that is typically a Web browser) can be
When the length of the report style cannot be determined in advance, it is impossible to include the Content-Length Field in the header to specify the length of the report style. In this case, the transfer-encoding field must be used to determine
There are two ways to connect Http connection: Short connection and long connection, short connection is the process of establishing and destroying TCP connection once request, and long connection is multiple requests sharing the same connection.
Original address: http://blog.csdn.net/zhangboyj/article/details/6236780
---------
Analysis of chunked encoding in HTTP1.1
In general HTTP communication, Content-length header information is used to inform the user agent (usually the browser) of
HTTP1.1 Analysis of chunked encoding
In general HTTP communication, the Content-length header information is used to inform the user agent (usually the browser) of the length of the document content sent by the server, which is defined in the HTTP1.0
After searching for the Chunked code on the Internet for a while, I have never found any article about Chunked encoding. Write one by myself.There are not many websites that use Chunked encoding on the Internet, except for those websites that use
Generally, the HTTP header contains the Content-Length field to specify the length of the message style. For example:
Sometimes the service cannot determine the message size when generating an HTTP response, such as downloading a large file or
Sometimes, when the server generates an HTTP response, the information size cannot be determined. In this case, Content-Length cannot be used to write the length in advance, but the message length needs to be generated in real time. In this case,
about how PHP uses curl to read HTTP chunked data, curlchunked
For the HTTP chunked data returned by the WEB server, we may want to get a callback when each chunk returns, instead of all the responses returning and then callbacks. For example, when
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.