Server Program Analysis Based on HTTP Protocol
College of Science, Air Force Engineering University, 710051 Xi’an, China
The overwhelming majority of Web developments are built based on Web application of HTTP protocol. To analyze the server program based on the HTTP protocol and the process of interaction between the browser and server, a simple HTTP-based server program is taken as an example to describe how to use the theories of multithreading and asynchronous operation, and the core section of HTTP-based server program is gradually resolved with Winsock programming. This method can achieve the purpose to avoid blocking the calling thread, and improve the responsiveness of a server program.
Key words: HTTP / HTTP protocol / Server / WinSock
© Owned by the authors, published by EDP Sciences, 2016
This is an Open Access article distributed under the terms of the Creative Commons Attribution License 4.0, which permits unrestricted use, distribution, and reproduction in any medium, provided the original work is properly cited.