{"id":437,"date":"2013-11-29T23:56:32","date_gmt":"2013-11-29T15:56:32","guid":{"rendered":"http:\/\/www.sandcomp.com\/blog\/?p=437"},"modified":"2013-12-01T21:04:17","modified_gmt":"2013-12-01T13:04:17","slug":"linux%e5%91%bd%e4%bb%a4%e8%a1%8c%e6%8d%95%e6%8d%89http%e6%95%b0%e6%8d%ae","status":"publish","type":"post","link":"https:\/\/www.sandcomp.com\/blog\/2013\/11\/29\/linux%e5%91%bd%e4%bb%a4%e8%a1%8c%e6%8d%95%e6%8d%89http%e6%95%b0%e6%8d%ae\/","title":{"rendered":"Linux\u547d\u4ee4\u884c\u6355\u6349HTTP\u6570\u636e"},"content":{"rendered":"<p>\u4e00\u822c\u63d0\u5230Linux\u4e0a\u6293\u5305\uff0c \u5927\u591a\u80fd\u60f3\u5230tcpdump\u6216\u8005wireshark\uff0c \u8fd9\u4e24\u4e2a\u5de5\u5177\u529f\u80fd\u5f3a\u5927\uff0c \u51e0\u4e4e\u6240\u6709\u9700\u6c42\u90fd\u53ef\u4ee5\u505a\u5230\u3002 \u4e0d\u8fc7\u5982\u679c\u5c31\u662f\u60f3\u628aHTTP Header\u6293\u4e0b\u6765\u770b\u770b\uff0c \u8fd9\u4e9b\u5de5\u5177\u5c31\u663e\u5f97\u592a\u8fc7\u590d\u6742\u4e86\uff0c tcpdump\u7684\u53c2\u6570\u603b\u662f\u8bb0\u4e0d\u4f4f\uff0c wireshark\u4e5f\u4e0d\u65b9\u4fbf\u5728\u8fdc\u7a0b\u7684linux\u4e3b\u673a\u4e0a\u8fd0\u884c\u3002<\/p>\n<p>\u524d\u4e24\u5929\u7ec8\u4e8e\u53d1\u73b0\u4e86\u7b80\u5355\u597d\u7528\u7684\u5de5\u5177: ngrep . \u6355\u6349HTTP\u6570\u636e\u7528\u4ee5\u4e0b\u547d\u4ee4\u5373\u53ef\uff1a<\/p>\n<pre><code># \u6355\u6349\u6240\u6709HTTP\u6d41\u91cf\nngrep -q -d any -W byline port 80\n\n# \u6355\u6349\u5230www.baidu.com\u7684\u6d41\u91cf\nngrep -q -d any -W byline port 80 and host www.baidu.com\n<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>\u4e00\u822c\u63d0\u5230Linux\u4e0a\u6293\u5305\uff0c \u5927\u591a\u80fd\u60f3\u5230tcpdump\u6216\u8005wireshark\uff0c \u8fd9 &hellip; <a href=\"https:\/\/www.sandcomp.com\/blog\/2013\/11\/29\/linux%e5%91%bd%e4%bb%a4%e8%a1%8c%e6%8d%95%e6%8d%89http%e6%95%b0%e6%8d%ae\/\">\u7ee7\u7eed\u9605\u8bfb <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[12],"tags":[],"class_list":["post-437","post","type-post","status-publish","format-standard","hentry","category-12"],"aioseo_notices":[],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.sandcomp.com\/blog\/wp-json\/wp\/v2\/posts\/437","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.sandcomp.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.sandcomp.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.sandcomp.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.sandcomp.com\/blog\/wp-json\/wp\/v2\/comments?post=437"}],"version-history":[{"count":4,"href":"https:\/\/www.sandcomp.com\/blog\/wp-json\/wp\/v2\/posts\/437\/revisions"}],"predecessor-version":[{"id":441,"href":"https:\/\/www.sandcomp.com\/blog\/wp-json\/wp\/v2\/posts\/437\/revisions\/441"}],"wp:attachment":[{"href":"https:\/\/www.sandcomp.com\/blog\/wp-json\/wp\/v2\/media?parent=437"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.sandcomp.com\/blog\/wp-json\/wp\/v2\/categories?post=437"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.sandcomp.com\/blog\/wp-json\/wp\/v2\/tags?post=437"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}