Http, TCP/IP, html Definition 1. What is http?
Http is the upper layer protocol of TCP/IP. Tcp is responsible for ensuring that files sent from one network node to another can arrive at the destination as a complete file. Although this file may be broken down into small pieces for transmission during the specific transfer process.
Ip is an underlying protocol that moves/routes data packets (data blocks) to the destination. Http is another network protocol with some specific web features. However, it depends on TCP/IP to completely send requests and responses from one place to another. The http session structure is a simple request/response sequence: the browser sends a request and the server responds. Key elements of the Request stream: www.2cto.com 1. http method-the action to be completed 2. the page to access --- url 3. form parameters-for example, key elements of the method parameter response stream: 1. status Code-indicates whether the request is successful. content type --- html, image, Text 3. content --- specific html, image html: Tell the browser how to present the content to the user
Http response can contain html. Http also adds header information before the content contained in the response.
The http browser uses the header information to help with html processing. You can paste html content into the http response. Author lishl