Request packet and response packet

Request packet:

Request line (verb Path Protocol / version)

Verb GET POST PUT PATCH DELETE HEAD OPTIONS and other
path can not write, the default fill /, access the root directory, in the path of the anchor does not recognize the
request header (in the form of key-value pairs)

Enter

Request body (transmitted data)

Response message:

Status line (Protocol / version state status codes explained)

Common status code:
200: normal processing
204: successfully processed, but no content returned
301: The requested resource has been permanently moved to another location
302: The requested resource resides temporarily moved to another location
400: request message syntax error or parameter error the server does not understand
403: access to the resource request is rejected by the server
404: the server can not find the resources you request
response header (in the form of key-value pairs)

Enter

Body response (data returned by the server)

Published 223 original articles · won praise 20 · views 40000 +

Guess you like

Origin blog.csdn.net/qq_30242987/article/details/104574392