Javaweb HTTP protocol

Source: Internet
Author: User

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

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.