When communication between server and client is constrained and regulated, the data interaction between the client and the service side is not disorganized and needs to be followed (based on) a certain specification, which is the HTTP protocol.
the HTTP protocol is primarily composed of requests and responses.
Common request Methods POST, GET,PUT,DELETE.
The request is initiated by the client, and its canonical format is: Request line, request header, request principal.
The response is issued by the server in the canonical format: status line, response header, response body.
When we enter a domain name, after pressing ENTER, the DNS domain name resolution system will resolve the domain name to an IP address, and then follow the IP address to find the appropriate server, and then send the request to the server, the server according to the request response data, data returned to the browser, the browser will render the data into a page.
The use of the HTTP Capture tool in the development can help us to debug, commonly used to grab the package tools HttpWatch,Fiddler,Charles,FireBug and so on.
Network Transport Protocol