We do web browsing, the browser and the server used most of the protocol is the HTTP protocol, we now use the most is the HTTP 1.1 protocol, of course, the latest HTTP 2.0 protocol has been in the mainstream browser and the latest version of the Web server has been supported, This protocol based on TCP is very simple and practical for web communication.
We first look at the HTTP request simple communication, because HTTP is based on TCP, so we can use Telnet request baidu.com, we can see the Baidu server to send us the HTTP message returned. Because HTTP communication is text, we can easily read the protocol content.
650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M01/7E/68/wKioL1b-Uvvj_biRAADFAnMM0qw418.png "title=" April 1, 2016 06-49-45.png "width=" "height=" 374 "border=" 0 "hspace=" 0 "vspace=" 0 "style=" WIDTH:400PX;HEIGHT:374PX; " alt= "Wkiol1b-uvvj_biraadfanmm0qw418.png"/>
This message is divided into two parts, the above part we sent to the server, the following is the server returned to us.
We link www.baidu.com after sending "get/http/1.1". The server returns the entire contents of the red box below us.
We'll now look at the tolerance distortion of the HTTP protocol using Chrome's developer tools.
The practice of HTTP packet capture--protocol