1. The browser is a Sokect client that communicates with the server using the HTTP protocol.
HTTP request:
Request Header:
(Request method) SP (URL) SP http/1.x <cr><lf>
(Universal header type name): SP (Universal header type value) <cr><lf>
(Request header type name): SP (Request header type value) <cr><lf>
(Entity header type name): SP (Entity header type value) <cr><lf>
<cr><lf>
Request Body:
HTTP data
Description
Method: Post,get
Solid head:
There are host:xxx on behalf of the backend server
User-angent: Represents the user's current system, browser, kernel
Accept-enconding: What encoding can be received on behalf of the browser
Accept-language: What languages can be received on behalf of the browser
Request body: For example username=xxxx&pwd=123 equivalent parameter
HTTP response:
Response header:
HTTP/1.1SP Status Code SP status code Description <cr><lf>
Server:microsolf-iis/8.5<cr><lf>
X-powerd-by:asp.net
Date:.....<cr><lf>
<cr><lf>
Return to Body:
HTTP data body
Status code:
Paragraph 200 is a success
Paragraph 300 requires further processing of the request.
400 segment is a client request error
500 segment is a server error
*content-type: The type of the request data content.
Learning Note 03http Protocol