The practice of HTTP packet capture--protocol

Source: Internet
Author: User
Tags http 2

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.