Introduction to http:
Hypertext Transfer Protocol Hypertext Transfer Protocol, one of the most widely used network protocols on the Internet.
All WWW sites must adhere to this standard, which is designed to provide a way to publish and receive HTML pages.
In the Web application, the server passes the Web page to the browser, which sends the HTML code of the Web page to the browser, which is displayed by the browser. The transport protocol between the browser and the server is HTTP.
HTTP request Format:
When the browser makes a request to the Web server, it passes a block of data, which is the request information. The HTTP request information consists of 3 parts:
Request Method URI Protocol version
Request Header
Request Body
HTTP response Format:
After the request message is received and interpreted, the server returns an HTTP response message, which is the response information. The HTTP response is also composed of 3 parts:
Status line
Response header
Response body
This article is from the "Java_learner_area" blog, make sure to keep this source http://javalearner.blog.51cto.com/7894037/1764529
Javaweb HTTP protocol