一、HTTP watch
请求——http客户端发送请求
~~~
GET /1.php HTTP/1.1 //请求的页面
Accept: text/html, application/xhtml+xml, */*
X-HttpWatch-RID: 84087-10136
Accept-Language: zh-CN
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; Trident/7.0; rv:11.0) like Gecko
Accept-Encoding: gzip, deflate
Host: www.php.com //请求服务器地址
DNT: 1
Connection: Keep-Alive
~~~
响应——http响应(浏览器解析)
~~~
HTTP/1.1 200 OK
Date: Wed, 12 Oct 2016 02:03:20 GMT
Server: Apache/2.4.10 (Win32) OpenSSL/0.9.8zb PHP/5.3.29
X-Powered-By: PHP/5.3.29
Content-Length: 145 //返回字节长度
Keep-Alive: timeout=5, max=99
Connection: Keep-Alive
Content-Type: text/html
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Document</title>
</head>
<body>
绗竴涓〉闈?
</body>
</html>
~~~
![](https://box.kancloud.cn/d2aac38ade8ca019789d0747edd0fa48_276x278.jpg)
![](https://box.kancloud.cn/7f0d3e6655ee411e35a108532e9ebe31_601x267.jpg)