Remarks: Proxy-Connection in Http network protocol
When using Chrome developer tools to capture packets, the request header Proxy-Connection is often seen. I didn't know what would happen in the past, and I didn't know what it means. After reading
time 2014-12-11 12:41:43 csdn Blog Original http://blog.csdn.net/bboyfeiyu/article/details/41863951 ThemeHTTPhttpcomponentsIn development, the more HTTP requests we use are basically get, POST. Where get is used to fetch data from the server, post
long connection and short connection
The so-called long connection, refers to a TCP connection can send multiple packets in a row, in the TCP connection to maintain, if there is no packet sent, the need for both sides to send detection packets to
When using short connection mode, each HTTP request corresponds to a TCP connection, the connection is immediately disconnected after the request completes, and the server returns EOF. So you can judge the end of a request based on EOF, the
I. About HTTPfirst, HTTP is a hypertext transfer protocol, is a request-and-response mode-based, stateless, application-level protocol, often based on TCP connection mode, the main features are as Follows:
Support Client/server mode;
Simple
Diet
Each meal has only seven full meals. three meals a day, breakfast must be eaten, dinner should be eaten less, and a week of ELE. Me should not eat while thinking about work.
Urinate in time, do not throw
Eat more vegetables, fruits, cereals,
Today, a co-worker asked me a question about file uploads. The configuration environment is Nginx + PHP + fpm. A test interface, a formal interface, the test interface to request a formal interface, attempt to upload files.
Problem characteristics:
Noiile@hotmail.com
In the SIP application, if a user is using the sip ua to enjoy a certain time-based service, such as watching a pay-as-you-go TV online and suddenly crashes, the server will not be able to know any information about the user's
Document directory
Not reliable
Keepalive and post
HTTP Keep-aliveSeems to be massively misunderstood. Here's a short description of how it works, under both1.0& 1.1
HTTP/
1.0
UnderHTTP 1.0, There is no official specification for how keepalive
I. About HTTPfirst, HTTP is a hypertext transfer protocol, is a request-and-response mode-based, stateless, application-level protocol, often based on TCP connection mode, the main features are as Follows:
Support Client/server mode;
Simple
So depending on the EOF to determine the end of a request, the following code (PHP) is common:
Copy Code code as follows:
$FP is the handle produced by Fsockopen ()
while (!feof ($fp)) {
Echo fgets ($FP);
}
(Note: The
PHP database persistent connection mysql_pconnect details. The persistent connection to MySQL in PHP has a good goal but a bad reputation. Why. After close observation, we found that this guy was not easy. he had a bad reputation for the persistent
PHP's MySQL persistent connection, a good goal, but has a bad reputation, often a very shy. What the hell is this? Close-up observation found that this guy is not easy ah, to see the face of Apache, but also to listen to the MySQL command.
For PHP
When using Chrome developer tools to capture packets, the request header Proxy-Connection is often seen. I didn't know what would happen in the past, and I didn't know what it means. After reading chapter 4 "connection management" and chapter 6
HTTP is a non-connected transaction protocol, the underlying use of TCP, connection pooling is a TCP connection, the purpose is to make multiple HTTP requests on a TCP connection to improve performance. At the end of each HTTP request, HttpClient
Reprinted from http://blog.csdn.net/shine0181/article/details/7799754/HTTP for long connections
HTTP is statelessThat is, the browser and the server each HTTP operation, the connection is established, but the end of the task to
HTTP for long connections
HTTP is stateless That is, the browser and the server each HTTP operation, the connection is established, but the end of the task to disconnect. If a client browser accesses an HTML or other type of Web page
HTTP is a non-connected transaction protocol, the underlying use of TCP, connection pooling is a TCP connection, the purpose is to make multiple HTTP requests on a TCP connection to improve performance. At the end of each HTTP request, HttpClient
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.