"Message" Understanding the HTTP Protocol's Request/response (request response) Model family CatalogIntroduction Request/Response modelHttp://www.cnblogs.com/engraver-lxw/p/7550514.html"principle" Understanding the HTTP Protocol's Request/response
HTTP Request for browser
It is easy to initiate an HTTP request. For example, you say you want to use a browser to access Reddit. All you need to do is start the browser and enter http://www.reddit.com in the Address bar, and you can see:
The
The http/1.1 standard has been a widely used and prevailing standard since its inception in 1999.Related documentsRfc2616:hypertext Transfer Protocol--http/1.1In RFC6585, the status codes 428, 429, 431, 511 are added inRFC2616 developed a series of
HTTP server development (Java) -- HTTP request, java -- http
Recently, I want to create an HTTP server for my course assignments. Now I want to record the entire process of my course assignments.
(1) theoretical knowledge
HTTP (HyperText
HTTP messages are text-oriented, and each field in a message is an ASCII string, and the length of each field is indeterminate. HTTP has two kinds of messages: Request message and Response message.
HTTP Request message
An HTTP request message
HTTP requests and Responses
When the following events occur, the browser sends an HTTP request to the Web server:
1. The user clicks a hyperlink on the webpage;
2. The user submits the form which fills on the webpage;
3. The user enters the URL
HTTP in Layman's HTTP request http (Hypertext Transfer Protocol) is a set of rules for computers to communicate over the network. Computer experts design HTTP to enable HTTP clients (such as Web browsers) to request information and services from an
1. VisitRequest Instance To get the current HTTP request instance through dependency injection, you need to type-prompt the class in the Controller's constructor or method so that the Illuminate\Http\Request current request instance is automatically
HTTP packets are text-oriented. Each field in the packet is an ASCII string, and the length of each field is uncertain. HTTP has two types of packets: Request Message and Response Message.
HTTP Request Message
An HTTP request Message consists of
HTTP StatelessThe HTTP protocol is stateless (stateless). That is, when the same client accesses a page on the same server for the second time, the server cannot know that the client has visited and the server cannot distinguish between different
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.