1. Definition
The HTTP Hypertext Transfer Protocol details the rules of communication between the World Wide Web server and the client.
HTTP is a stateless connection such as when you send a request on a Web site after the Web server processes your request to return data and disconnect
Stateful connection (continuous connection) such as QQ
2. Format of request and response
Telnet Client open Control Panel program selector and feature selection inside the Open or close Windows feature to open Telnet
Then open xampp in the cmd window, enter telnet localhost 80 and press Enter in the blank interface that appears, press CTRL +] and then go to the point of return and then you can write the request in a blank place.
3.HTTP Request method
The difference between get and post
Get is the information that gets the address bar post is the form submission information is just the semantic difference between the two are clear text transmission no security which unsecured switch gateway can see the data generally said security or the obtained information size is the external browser address limit the length and size and the HTTP protocol G ET Post doesn't Matter
4. Status Code
5.POST request (http://www.ietf.org/rfc/rfc1867.txt )
Forum Anti-Irrigation principle is to determine the cookie between this request and the last request interval.
How the session works: Accept The session ID carried by the cookie and verify the legality;
Interview question: does local browser disable cookie,session still work? can be used to detect the cookie disabled can be artificial to add the session ID to a hidden form can also be written to a address bar as long as it can be legally passed the session can also be used
6. Collecting website information using HTTP protocol
HTTP protocol Basics