{"id":53,"date":"2018-11-18T18:51:53","date_gmt":"2018-11-18T10:51:53","guid":{"rendered":"http:\/\/47.107.162.66\/?p=53"},"modified":"2018-12-19T14:07:14","modified_gmt":"2018-12-19T06:07:14","slug":"http%e5%a4%b4","status":"publish","type":"post","link":"https:\/\/harson.co\/index.php\/2018\/11\/18\/http%e5%a4%b4\/","title":{"rendered":"HTTP\u5934"},"content":{"rendered":"<h1>HTTP\u8bf7\u6c42\u5934\uff1a<\/h1>\n<h2>Accept<\/h2>\n<p>\u544a\u8bc9WEB\u670d\u52a1\u5668\u81ea\u5df1\u63a5\u53d7\u4ec0\u4e48\u4ecb\u8d28\u7c7b\u578b\uff0c*\/* \u8868\u793a\u4efb\u4f55\u7c7b\u578b\uff0ctype\/* \u8868\u793a\u8be5\u7c7b\u578b\u4e0b\u7684\u6240\u6709\u5b50\u7c7b\u578b\uff0ctype\/sub-type\u3002<\/p>\n<p><strong>\u793a\u4f8b\uff1a<\/strong>Accept text\/xml,application\/xml,application\/xhtml+xml,text\/html;q=0.9,text\/plain;q=0.8,image\/png,*\/*;q=0.5<\/p>\n<p>&nbsp;<\/p>\n<h2>Accept-Charset<\/h2>\n<p>\u6d4f\u89c8\u5668\u7533\u660e\u81ea\u5df1\u63a5\u6536\u7684\u5b57\u7b26\u96c6<\/p>\n<p>Accept-Encoding\uff1a\u6d4f\u89c8\u5668\u7533\u660e\u81ea\u5df1\u63a5\u6536\u7684\u7f16\u7801\u65b9\u6cd5\uff0c\u901a\u5e38\u6307\u5b9a\u538b\u7f29\u65b9\u6cd5\uff0c\u662f\u5426\u652f\u6301\u538b\u7f29\uff0c\u652f\u6301\u4ec0\u4e48\u538b\u7f29\u65b9\u6cd5 \uff08gzip\uff0cdeflate\uff09<\/p>\n<p>Accept-Language\uff1a\u6d4f\u89c8\u5668\u7533\u660e\u81ea\u5df1\u63a5\u6536\u7684\u8bed\u8a00\u8bed\u8a00\u8ddf\u5b57\u7b26\u96c6\u7684\u533a\u522b\uff1a\u4e2d\u6587\u662f\u8bed\u8a00\uff0c\u4e2d\u6587\u6709\u591a\u79cd\u5b57\u7b26\u96c6\uff0c\u6bd4\u5982big5\uff0cgb2312\uff0cgbk\u7b49\u7b49\u3002<\/p>\n<p><strong>\u793a\u4f8b\uff1a<\/strong><\/p>\n<p>Accept-Language zh-cn,zh;q=0.5<br \/>\nAccept-Encoding gzip,deflate<\/p>\n<h2>User-Agent<\/h2>\n<p>\u8868\u660e\u8bf7\u6c42\u7aef\u7684\u6d4f\u89c8\u5668\uff0c\u7cfb\u7edf\u7248\u672c\u7b49\u4fe1\u606f<\/p>\n<p><strong>\u793a\u4f8b\uff1a<\/strong>User-Agent Mozilla\/5.0 (Windows; U; Windows NT 5.1; zh-CN; rv:1.8.1.14) Gecko\/20080404 Firefox\/2.0.0.14<\/p>\n<h2>Cache-Control<\/h2>\n<p>\u8bf7\u6c42<\/p>\n<p>no-cache\uff1a\uff08\u4e0d\u8981\u7f13\u5b58\u7684\u5b9e\u4f53\uff0c\u8981\u6c42\u73b0\u5728\u4eceWEB\u670d\u52a1\u5668\u53bb\u53d6\uff09<\/p>\n<p>max-age\uff1a\uff08\u53ea\u63a5\u53d7 Age \u503c\u5c0f\u4e8e max-age \u503c\uff0c\u5e76\u4e14\u6ca1\u6709\u8fc7\u671f\u7684\u5bf9\u8c61\uff09<\/p>\n<p>max-stale\uff1a\uff08\u53ef\u4ee5\u63a5\u53d7\u8fc7\u53bb\u7684\u5bf9\u8c61\uff0c\u4f46\u662f\u8fc7\u671f\u65f6\u95f4\u5fc5\u987b\u5c0f\u4e8emax-stale \u503c\uff09<\/p>\n<p>min-fresh\uff1a\uff08\u63a5\u53d7\u5176\u65b0\u9c9c\u751f\u547d\u671f\u5927\u4e8e\u5176\u5f53\u524d Age \u8ddf min-fresh \u503c\u4e4b\u548c\u7684\u7f13\u5b58\u5bf9\u8c61\uff09<\/p>\n<p>&nbsp;<\/p>\n<p>\u54cd\u5e94\uff1a<\/p>\n<p>public(\u53ef\u4ee5\u7528 Cached \u5185\u5bb9\u56de\u5e94\u4efb\u4f55\u7528\u6237)<\/p>\n<p>private\uff08\u53ea\u80fd\u7528\u7f13\u5b58\u5185\u5bb9\u56de\u5e94\u5148\u524d\u8bf7\u6c42\u8be5\u5185\u5bb9\u7684\u90a3\u4e2a\u7528\u6237\uff09<\/p>\n<p>no-cache\uff08\u53ef\u4ee5\u7f13\u5b58\uff0c\u4f46\u662f\u53ea\u6709\u5728\u8ddfWEB\u670d\u52a1\u5668\u9a8c\u8bc1\u4e86\u5176\u6709\u6548\u540e\uff0c\u624d\u80fd\u8fd4\u56de\u7ed9\u5ba2\u6237\u7aef\uff09<\/p>\n<p>max-age\uff1a\uff08\u672c\u54cd\u5e94\u5305\u542b\u7684\u5bf9\u8c61\u7684\u8fc7\u671f\u65f6\u95f4\uff09<\/p>\n<p>ALL: no-store\uff08\u4e0d\u5141\u8bb8\u7f13\u5b58\uff09<\/p>\n<p><strong>\u793a\u4f8b\uff1a<\/strong>Cache-Control max-age=0<\/p>\n<h2>Connection<\/h2>\n<p>\u8bf7\u6c42\uff1aclose\uff08\u544a\u8bc9WEB\u670d\u52a1\u5668\u6216\u8005\u4ee3\u7406\u670d\u52a1\u5668\uff0c\u5728\u5b8c\u6210\u672c\u6b21\u8bf7\u6c42\u7684\u54cd\u5e94\u540e\uff0c\u65ad\u5f00\u8fde\u63a5\uff0c\u4e0d\u8981\u7b49\u5f85\u672c\u6b21\u8fde\u63a5\u7684\u540e\u7eed\u8bf7\u6c42\u4e86\uff09\u3002<\/p>\n<p>keepalive\uff08\u544a\u8bc9WEB\u670d\u52a1\u5668\u6216\u8005\u4ee3\u7406\u670d\u52a1\u5668\uff0c\u5728\u5b8c\u6210\u672c\u6b21\u8bf7\u6c42\u7684\u54cd\u5e94\u540e\uff0c\u4fdd\u6301\u8fde\u63a5\uff0c\u7b49\u5f85\u672c\u6b21\u8fde\u63a5\u7684\u540e\u7eed\u8bf7\u6c42\uff09\u3002<\/p>\n<p>\u54cd\u5e94\uff1aclose\uff08\u8fde\u63a5\u5df2\u7ecf\u5173\u95ed\uff09\u3002<\/p>\n<p>keepalive\uff08\u8fde\u63a5\u4fdd\u6301\u7740\uff0c\u5728\u7b49\u5f85\u672c\u6b21\u8fde\u63a5\u7684\u540e\u7eed\u8bf7\u6c42\uff09\u3002<\/p>\n<p>Keep-Alive\uff1a\u5982\u679c\u6d4f\u89c8\u5668\u8bf7\u6c42\u4fdd\u6301\u8fde\u63a5\uff0c\u5219\u8be5\u5934\u90e8\u8868\u660e\u5e0c\u671b WEB \u670d\u52a1\u5668\u4fdd\u6301\u8fde\u63a5\u591a\u957f\u65f6\u95f4\uff08\u79d2\uff09\u3002\u4f8b\u5982\uff1aKeep-Alive\uff1a300<\/p>\n<p><strong>\u793a\u4f8b\uff1a<\/strong>Connection keep-alive<\/p>\n<h2>If-Modified-Since<\/h2>\n<p>\u5982\u679c\u8bf7\u6c42\u7684\u5bf9\u8c61\u5728\u8be5\u5934\u90e8\u6307\u5b9a\u7684\u65f6\u95f4\u4e4b\u540e\u4fee\u6539\u4e86\uff0c\u624d\u6267\u884c\u8bf7\u6c42\u7684\u52a8\u4f5c\uff08\u6bd4\u5982\u8fd4\u56de\u5bf9\u8c61\uff09\uff0c\u5426\u5219\u8fd4\u56de\u4ee3\u7801304\uff0c\u544a\u8bc9\u6d4f\u89c8\u5668\u8be5\u5bf9\u8c61\u6ca1\u6709\u4fee\u6539\u3002If-Unmodified-Since\uff1a\u5982\u679c\u8bf7\u6c42\u7684\u5bf9\u8c61\u5728\u8be5\u5934\u90e8\u6307\u5b9a\u7684\u65f6\u95f4\u4e4b\u540e\u6ca1\u4fee\u6539\u8fc7\uff0c\u624d\u6267\u884c\u8bf7\u6c42\u7684\u52a8\u4f5c\uff08\u6bd4\u5982\u8fd4\u56de\u5bf9\u8c61\uff09<\/p>\n<p><strong>\u793a\u4f8b\uff1a<\/strong>If-Modified-Since\uff1aThu, 10 Apr 2008 09:14:42 GMT<\/p>\n<h2>Pramga<\/h2>\n<p>\u4e3b\u8981\u4f7f\u7528 Pramga: no-cache\uff0c\u76f8\u5f53\u4e8e Cache-Control\uff1a no-cache\u3002<\/p>\n<p>\u4f8b\u5982\uff1aPragma\uff1ano-cache<\/p>\n<div>\n<h2><strong>Referer<\/strong><\/h2>\n<div>\u8bbe\u7f6e\u524d\u4e00\u4e2a\u9875\u9762\u7684\u5730\u5740\uff0c\u5e76\u4e14\u524d\u4e00\u4e2a\u9875\u9762\u4e2d\u7684\u8fde\u63a5\u6307\u5411\u5f53\u524d\u8bf7\u6c42\uff0c\u610f\u601d\u5c31\u662f\u5982\u679c\u5f53\u524d\u8bf7\u6c42\u662f\u5728A\u9875\u9762\u4e2d\u53d1\u9001\u7684\uff0c\u90a3\u4e48referer\u5c31\u662fA\u9875\u9762\u7684url\u5730\u5740\uff08\u8f76\u4e8b\uff1a\u8fd9\u4e2a\u5355\u8bcd\u6b63\u786e\u7684\u62fc\u6cd5\u5e94\u8be5\u662f&#8221;referrer&#8221;,\u4f46\u662f\u5728\u5f88\u591a\u89c4\u8303\u4e2d\u90fd\u62fc\u6210\u4e86&#8221;referer&#8221;\uff0c\u6240\u4ee5\u8fd9\u4e2a\u5355\u8bcd\u4e5f\u5c31\u6210\u4e3a\u6807\u51c6\u7528\u6cd5\uff09<\/div>\n<\/div>\n<div><\/div>\n<h2><strong>X-Forwarded-For<\/strong><\/h2>\n<p>\u8fd9\u4e2a\u53c2\u6570\u53ef\u4ee5\u901a\u8fc7HTTP\u5934\u53ef\u4ee5\u4f2a\u9020IP\uff0c\u4e0e\u6b64\u7c7b\u4f3c\u7684\u8fd8\u6709\u00a0 \u00a0 \u00a0<strong>X-Real-IP ,HTTP_CLIENT_IP\u00a0\uff0c X-Real-IP\u00a0<\/strong><\/p>\n<h2>\u5b8c\u6574HTTP\u8bf7\u6c42\u5934\uff1a<\/h2>\n<pre class=\"pure-highlightjs\"><code class=\"\">Host:rss.sina.com.cn\r\n User-Agent Mozilla\/5.0 (Windows; U; Windows NT 5.1; zh-CN; rv:1.8.1.14) Gecko\/20080404 Firefox\/2.0.0.14\r\n Accept text\/xml,application\/xml,application\/xhtml+xml,text\/html;q=0.9,text\/plain;q=0.8,image\/png,*\/*;q=0.5\r\n Accept-Language zh-cn,zh;q=0.5\r\n Accept-Encoding gzip,deflate\r\n Accept-Charset gb2312,utf-8;q=0.7,*;q=0.7\r\n Keep-Alive 300\r\n Connection keep-alive\r\n Cookie userId=C5bYpXrimdmsiQmsBPnE1Vn8ZQmdWSm3WRlEB3vRwTnRtW &lt;-- Cookie\r\n If-Modified-Since Sun, 01 Jun 2008 12:05:30 GMT\r\n Cache-Control max-age=0<\/code><\/pre>\n<p>&nbsp;<\/p>\n<h1>HTTP\u54cd\u5e94\u5934\uff1a<\/h1>\n<h2>ETag:<\/h2>\n<p>\u6682\u65f6\u4e0d\u77e5\u9053&#8230;<\/p>\n<h2>Via:<\/h2>\n<p>\u6682\u65f6\u4e0d\u77e5\u9053&#8230;<\/p>\n<h2>Allow\uff1a<\/h2>\n<p>\u8868\u660e\u8be5\u670d\u52a1\u5668\u652f\u6301\u4ec0\u4e48\u7c7b\u578b\u7684\u8bf7\u6c42\u65b9\u5f0f<\/p>\n<h2>Content-Length\uff1a<\/h2>\n<p>\u8868\u660e\u8be5\u9875\u9762\u5168\u957f\u591a\u5c11\u5b57\u8282\uff0c\u6d4f\u89c8\u5668\u53ef\u4ee5\u6309\u7167\u8be5\u957f\u5ea6\u5224\u65ad\u662f\u5426<\/p>\n","protected":false},"excerpt":{"rendered":"<p>HTTP\u8bf7\u6c42\u5934\uff1a Accept \u544a\u8bc9WEB\u670d\u52a1\u5668\u81ea\u5df1\u63a5\u53d7\u4ec0\u4e48\u4ecb\u8d28\u7c7b\u578b\uff0c*\/* \u8868\u793a\u4efb\u4f55\u7c7b\u578b\uff0ctype\/* \u8868\u793a [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[],"class_list":["post-53","post","type-post","status-publish","format-standard","hentry","category-web"],"_links":{"self":[{"href":"https:\/\/harson.co\/index.php\/wp-json\/wp\/v2\/posts\/53","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/harson.co\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/harson.co\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/harson.co\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/harson.co\/index.php\/wp-json\/wp\/v2\/comments?post=53"}],"version-history":[{"count":5,"href":"https:\/\/harson.co\/index.php\/wp-json\/wp\/v2\/posts\/53\/revisions"}],"predecessor-version":[{"id":203,"href":"https:\/\/harson.co\/index.php\/wp-json\/wp\/v2\/posts\/53\/revisions\/203"}],"wp:attachment":[{"href":"https:\/\/harson.co\/index.php\/wp-json\/wp\/v2\/media?parent=53"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/harson.co\/index.php\/wp-json\/wp\/v2\/categories?post=53"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/harson.co\/index.php\/wp-json\/wp\/v2\/tags?post=53"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}