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
chunked transfer encoding (Chunked transfer encoding) is a data transfer mechanism in Hypertext Transfer Protocol (HTTP) that allows HTTP to be sent by the application server to the client application ( Data that is typically a Web browser) can be
Http encoding chunked and chunked
I was not very concerned about this. This chunked is enabled by default on nginx, but not on apache. So when switching the server, I also encountered this problem, garbled data is found.
I can find out what the http
In general, the header of HTTP contains the Content-length field to indicate the length of the newspaper style.
Sometimes the service generates HTTP response is unable to determine the size of the message, such as large file download, or the
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
Turn from: wonderful day girl--chunked transmission Code ~Reference Links:
HTTP Mdn--http Protocol
First, background:
Persistent connection problem: for a non-persistent connection, the browser can define the boundary of the
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
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.