一、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>
~~~

