捕獲所有的HTTP數據包我想運行tcpdump
一些參數(仍然不知道有什麼用)。然後加載這個stackoverflow.com頁面。如何使用tcpdump的
輸出應該是HTTP通信。後來我想用它作爲shell腳本。所以每當我要檢查一個網站site.com的HTTP江西通信我只可以運行script.sh site.com
HTTP通信應該足夠簡單。如下。
GET /questions/9241391/how-to-capture-all-the-http-communication-data-using-tcp-dump
Host: stackoverflow.com
...
...
HTTP/1.1 200 OK
Cache-Control: public, max-age=60
Content-Length: 35061
Content-Type: text/html; charset=utf-8
Expires: Sat, 11 Feb 2012 15:36:46 GMT
Last-Modified: Sat, 11 Feb 2012 15:35:46 GMT
Vary: *
Date: Sat, 11 Feb 2012 15:35:45 GMT
....
decoded deflated data
....
現在,你能告訴我用tcpdump
哪個選項來捕獲它嗎?
看起來像 「捲曲-v site.com」 是你所需要的。 :) – 2015-08-05 14:43:04