Traditional Culture Encyclopedia - Traditional virtues - What are the three main components of an http request: request line, request header and request body?
What are the three main components of an http request: request line, request header and request body?
1. Request message (request line/request title/request data/blank line)
Request line
Find the method field, URL field and HTTP protocol version.
For example: get/index.htmlhttp/1.1.
The get method splices the data behind the url, and the parameters passed are limited.
Request method:
Get, Publish, Title, Upload, Delete, Options, Track, Connect
Request Title (Key Value Form)
User Agent: The browser type that generated the request.
Accepted: List of content types recognized by the client.
Host: host address
Request data
In the post method, the data will be sent to the request in the form of key values.
blank line
Send carriage return and line break to inform the server that there is no request header below.
2. Response message (status line, message title, response body)
Status line
Message title
Reply text
- Previous article:Introduction of Pikou Station Construction Project?
- Next article:Traditional people are divided into four categories.
- Related articles
- I want to know how young people born in 1980s and 1990s view the traditional culture of China.
- [Xitang Travel Guide] Want the latest?
- Why does Tencent only invest in some enterprises instead of acquiring them?
- What kinds of wallpapers are there? What is the price of wallpaper?
- What is the painting method of treading water in Jingdezhen?
- How to draw red culture handbook for 5th grade book
- 202 1 1004 listening notes: how to complete an arduous task due to insufficient resources?
- The story about Dragon Boat Festival
- What are the fishing gear?
- Are there any interesting tourist attractions in Liaocheng?