1, the HTTP protocol is an application-level protocol, the main features are summarized as follows
1) Support Client server mode
2) Simple and fast, when the customer requests the service to the server, only needs to transmit the method and the path, the request method has get,post. Each method stipulates that the customer and the server contact type is different, because the HTTP protocol is simple, the HTTP protocol is simple, makes the Web server scale small, thus the communication speed is very fast.
3) Flexible, HTTP allows the transfer of any type of data object.
4) No connection, no connection does not need to connect, the meaning of no connection is to process only one request at a time, the server processes the customer's request, and receives the customer answers, namely disconnects
5) stateless, the HTTP protocol is stateless, stateless means that the protocol does not deal with no transaction without memory ability, the lack of state is that if the subsequent processing requires the previous information, it must be re-transmitted, which results in the amount of data transmitted each time increased.
Project description
1) One of the characteristics of the HTTP protocol is to support the client server mode, the customer only need to transfer methods and paths to the server
2) requests to the client, after the server determines the URL, returns to the client to request resources, including text, pictures
3) Support form submission, using the Post method and the Get method to access the server with the help of a browser or Telnet tool
4) After the server has received the data requested by the client, it will save the data to the remote database, and the client requests to view the database information
The framework of the project
650) this.width=650; "style=" width:600px;height:258px; "src=" http://s3.51cto.com/wyfs02/M00/86/8A/ Wkiol1fdmwbdweabaagtkgaeqbg470.png-wh_500x0-wm_3-wmp_4-s_1582780700.png "title=" 10.png "border=" 0 "hspace=" 0 " Vspace= "0" width= "height=" 258 "alt=" wkiol1fdmwbdweabaagtkgaeqbg470.png-wh_50 "/>
HTTP protocol-based Web server