﻿{"id":645,"date":"2010-06-20T19:40:00","date_gmt":"2010-06-20T11:40:00","guid":{"rendered":"http:\/\/blog.jixin.ntxz.net\/?p=645"},"modified":"2010-07-30T15:38:50","modified_gmt":"2010-07-30T07:38:50","slug":"%e5%b8%b8%e7%94%a8request-servervariables","status":"publish","type":"post","link":"http:\/\/www.ntxz.net\/?p=645","title":{"rendered":"\u5e38\u7528Request.ServerVariables()"},"content":{"rendered":"<p>Request.ServerVariables(&#8220;REMOTE_ADDR&#8221;)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &#8216;\u83b7\u53d6\u8bbf\u95eeIP<br \/>Request.ServerVariables(&#8220;LOCAL_ADDR&#8221;)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &#8216;\u540c\u4e0a<br \/>Request.ServerVariables(&#8220;SERVER_NAME&#8221;)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &#8216;\u83b7\u53d6\u670d\u52a1\u5668IP<br \/>Request.ServerVariables(&#8220;HTTP_REFERER&#8221;)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &#8216;\u83b7\u53d6\u8bbf\u95ee\u6765\u6e90\u9875\u9762<br \/>Request.ServerVariables(&#8220;OS&#8221;)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &#8216;\u83b7\u53d6\u64cd\u4f5c\u7cfb\u7edf<br \/>request.ServerVariables(&#8220;APPL_PHYSICAL_PATH&#8221;)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &#8216;\u83b7\u53d6IIS\u7269\u7406\u8def\u5f84<br \/>Request.ServerVariables(&#8220;SCRIPT_NAME&#8221;)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &#8216;\u83b7\u53d6\u865a\u62df\u8def\u5f84<br \/>Request.ServerVariables(&#8220;NUMBER_OF_PROCESSORS&#8221;)&nbsp;&nbsp;&nbsp;&nbsp; &#8216;\u83b7\u53d6\u670d\u52a1\u5668CPU\u4e2a\u6570<br \/>Request.ServerVariables(&#8220;SERVER_PORT&#8221;)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &#8216;\u670d\u52a1\u5668\u5904\u7406\u8bf7\u6c42\u7684\u7aef\u53e3<br \/>Request.ServerVariables[&#8220;Url&#8221;]&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \u8fd4\u56de\u670d\u52a1\u5668\u5730\u5740 <br \/>Request.ServerVariables[&#8220;Path_Info&#8221;]&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \u5ba2\u6237\u7aef\u63d0\u4f9b\u7684\u8def\u5f84\u4fe1\u606f <br \/>Request.ServerVariables[&#8220;Appl_Physical_Path&#8221;] \u4e0e\u5e94\u7528\u7a0b\u5e8f\u5143\u6570\u636e\u5e93\u8def\u5f84\u76f8\u5e94\u7684\u7269\u7406\u8def\u5f84 <br \/>Request.ServerVariables[&#8220;Path_Translated&#8221;]&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \u901a\u8fc7\u7531\u865a\u62df\u81f3\u7269\u7406\u7684\u6620\u5c04\u540e\u5f97\u5230\u7684\u8def\u5f84 <br \/>Request.ServerVariables[&#8220;Script_Name&#8221;]&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \u6267\u884c\u811a\u672c\u7684\u540d\u79f0 <br \/>Request.ServerVariables[&#8220;Query_String&#8221;]&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \u67e5\u8be2\u5b57\u7b26\u4e32\u5185\u5bb9 <br \/>Request.ServerVariables[&#8220;Http_Referer&#8221;]&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \u8bf7\u6c42\u7684\u5b57\u7b26\u4e32\u5185\u5bb9 <br \/>Request.ServerVariables[&#8220;Server_Port&#8221;]&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \u63a5\u53d7\u8bf7\u6c42\u7684\u670d\u52a1\u5668\u7aef\u53e3\u53f7 <br \/>Request.ServerVariables[&#8220;Remote_Addr&#8221;]&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \u53d1\u51fa\u8bf7\u6c42\u7684\u8fdc\u7a0b\u4e3b\u673a\u7684IP\u5730\u5740 <br \/>Request.ServerVariables[&#8220;Remote_Host&#8221;]&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \u53d1\u51fa\u8bf7\u6c42\u7684\u8fdc\u7a0b\u4e3b\u673a\u540d\u79f0 <br \/>Request.ServerVariables[&#8220;Local_Addr&#8221;]&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \u8fd4\u56de\u63a5\u53d7\u8bf7\u6c42\u7684\u670d\u52a1\u5668\u5730\u5740 <br \/>Request.ServerVariables[&#8220;Http_Host&#8221;]&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \u8fd4\u56de\u670d\u52a1\u5668\u5730\u5740 <br \/>Request.ServerVariables[&#8220;Server_Name&#8221;]&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \u670d\u52a1\u5668\u7684\u4e3b\u673a\u540d\u3001DNS\u5730\u5740\u6216IP\u5730\u5740 <br \/>Request.ServerVariables[&#8220;Request_Method&#8221;] \u63d0\u51fa\u8bf7\u6c42\u7684\u65b9\u6cd5\u6bd4\u5982GET\u3001HEAD\u3001POST\u7b49\u7b49 <br \/>Request.ServerVariables[&#8220;Server_Port_Secure&#8221;]&nbsp;&nbsp;&nbsp;&nbsp; \u5982\u679c\u63a5\u53d7\u8bf7\u6c42\u7684\u670d\u52a1\u5668\u7aef\u53e3\u4e3a\u5b89\u5168\u7aef\u53e3\u65f6\uff0c\u5219\u4e3a1\uff0c\u5426\u5219\u4e3a0 <br \/>Request.ServerVariables[&#8220;Server_Protocol&#8221;]&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \u670d\u52a1\u5668\u4f7f\u7528\u7684\u534f\u8bae\u7684\u540d\u79f0\u548c\u7248\u672c <br \/>Request.ServerVariables[&#8220;Server_Software&#8221;]&nbsp;&nbsp;&nbsp;&nbsp; \u5e94\u7b54\u8bf7\u6c42\u5e76\u8fd0\u884c\u7f51\u5173\u7684\u670d\u52a1\u5668\u8f6f\u4ef6\u7684\u540d\u79f0\u548c\u7248\u672c <br \/>Request.ServerVariables[&#8220;All_Http&#8221;]&nbsp;&nbsp;&nbsp;&nbsp; \u5ba2\u6237\u7aef\u53d1\u9001\u7684\u6240\u6709HTTP\u6807\u5934\uff0c\u524d\u7f00HTTP_ <br \/>Request.ServerVariables[&#8220;All_Raw&#8221;]&nbsp;&nbsp;&nbsp;&nbsp; \u5ba2\u6237\u7aef\u53d1\u9001\u7684\u6240\u6709HTTP\u6807\u5934,\u5176\u7ed3\u679c\u548c\u5ba2\u6237\u7aef\u53d1\u9001\u65f6\u4e00\u6837\uff0c\u6ca1\u6709\u524d\u7f00HTTP_ <br \/>Request.ServerVariables[&#8220;Appl_MD_Path&#8221;]&nbsp;&nbsp;&nbsp;&nbsp; \u5e94\u7528\u7a0b\u5e8f\u7684\u5143\u6570\u636e\u5e93\u8def\u5f84 <br \/>Request.ServerVariables[&#8220;Content_Length&#8221;]&nbsp;&nbsp;&nbsp;&nbsp; \u5ba2\u6237\u7aef\u53d1\u51fa\u5185\u5bb9\u7684\u957f\u5ea6 <br \/>Request.ServerVariables[&#8220;Https&#8221;]&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \u5982\u679c\u8bf7\u6c42\u7a7f\u8fc7\u5b89\u5168\u901a\u9053\uff08SSL\uff09\uff0c\u5219\u8fd4\u56deON\u5982\u679c\u8bf7\u6c42\u6765\u81ea\u975e\u5b89\u5168\u901a\u9053\uff0c\u5219\u8fd4\u56deOFF <br \/>Request.ServerVariables[&#8220;Instance_ID&#8221;]&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; IIS\u5b9e\u4f8b\u7684ID\u53f7 <br \/>Request.ServerVariables[&#8220;Instance_Meta_Path&#8221;]&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \u54cd\u5e94\u8bf7\u6c42\u7684IIS\u5b9e\u4f8b\u7684\u5143\u6570\u636e\u5e93\u8def\u5f84 <br \/>Request.ServerVariables[&#8220;Http_Accept_Encoding&#8221;]&nbsp;&nbsp; \u8fd4\u56de\u5185\u5bb9\u5982\uff1agzip,deflate <br \/>Request.ServerVariables[&#8220;Http_Accept_Language&#8221;]&nbsp;&nbsp; \u8fd4\u56de\u5185\u5bb9\u5982\uff1aen-us <br \/>Request.ServerVariables[&#8220;Http_Connection&#8221;]&nbsp;&nbsp; \u8fd4\u56de\u5185\u5bb9\uff1aKeep-Alive <br \/>Request.ServerVariables[&#8220;Http_Cookie&#8221;]&nbsp;&nbsp;&nbsp;&nbsp; \u8fd4\u56de\u5185\u5bb9\uff1aCookie\u7684\u503c <br \/>Request.ServerVariables[&#8220;Http_User_Agent&#8221;]&nbsp;&nbsp;&nbsp;&nbsp; \u8fd4\u56de\u5185\u5bb9\uff1aMozilla\/4.0[compatible;MSIE6.0;WindowsNT5.1;SV1] <br \/>Request.ServerVariables[&#8220;Https_Keysize&#8221;]&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \u5b89\u5168\u5957\u63a5\u5b57\u5c42\u8fde\u63a5\u5173\u952e\u5b57\u7684\u4f4d\u6570\uff0c\u5982128 <br \/>Request.ServerVariables[&#8220;Https_Secretkeysize&#8221;]&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \u670d\u52a1\u5668\u9a8c\u8bc1\u79c1\u4eba\u5173\u952e\u5b57\u7684\u4f4d\u6570\u59821024 <br \/>Request.ServerVariables[&#8220;Https_Server_Issuer&#8221;]&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \u670d\u52a1\u5668\u8bc1\u4e66\u7684\u53d1\u884c\u8005\u5b57\u6bb5 <br \/>Request.ServerVariables[&#8220;Https_Server_Subject&#8221;]&nbsp;&nbsp;&nbsp;&nbsp; \u670d\u52a1\u5668\u8bc1\u4e66\u7684\u4e3b\u9898\u5b57\u6bb5 <br \/>Request.ServerVariables[&#8220;Auth_Password&#8221;]&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \u5f53\u4f7f\u7528\u57fa\u672c\u9a8c\u8bc1\u6a21\u5f0f\u65f6\uff0c\u5ba2\u6237\u5728\u5bc6\u7801\u5bf9\u8bdd\u6846\u4e2d\u8f93\u5165\u7684\u5bc6\u7801 <br \/>Request.ServerVariables[&#8220;Auth_Type&#8221;]&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \u662f\u7528\u6237\u8bbf\u95ee\u53d7\u4fdd\u62a4\u7684\u811a\u672c\u65f6\uff0c\u670d\u52a1\u5668\u7528\u65bc\u68c0\u9a8c\u7528\u6237\u7684\u9a8c\u8bc1\u65b9\u6cd5 <br \/>Request.ServerVariables[&#8220;Auth_User&#8221;]&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \u4ee3\u8bc1\u7684\u7528\u6237\u540d <br \/>Request.ServerVariables[&#8220;Cert_Cookie&#8221;]&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \u552f\u4e00\u7684\u5ba2\u6237\u8bc1\u4e66ID\u53f7 <br \/>Request.ServerVariables[&#8220;Cert_Flag&#8221;] <br \/>\u5ba2\u6237\u8bc1\u4e66\u6807\u5fd7\uff0c\u5982\u6709\u5ba2\u6237\u7aef\u8bc1\u4e66\uff0c\u5219bit0\u4e3a0\u5982\u679c\u5ba2\u6237\u7aef\u8bc1\u4e66\u9a8c\u8bc1\u65e0\u6548\uff0cbit1\u88ab\u8bbe\u7f6e\u4e3a1 <br \/>Request.ServerVariables[&#8220;Cert_Issuer&#8221;]&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \u7528\u6237\u8bc1\u4e66\u4e2d\u7684\u53d1\u884c\u8005\u5b57\u6bb5 <br \/>Request.ServerVariables[&#8220;Cert_Keysize&#8221;]&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \u5b89\u5168\u5957\u63a5\u5b57\u5c42\u8fde\u63a5\u5173\u952e\u5b57\u7684\u4f4d\u6570\uff0c\u5982128 <br \/>Request.ServerVariables[&#8220;Cert_Secretkeysize&#8221;]&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \u670d\u52a1\u5668\u9a8c\u8bc1\u79c1\u4eba\u5173\u952e\u5b57\u7684\u4f4d\u6570\u59821024 <br \/>Request.ServerVariables[&#8220;Cert_Serialnumber&#8221;]&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \u5ba2\u6237\u8bc1\u4e66\u7684\u5e8f\u5217\u53f7\u5b57\u6bb5 <br \/>Request.ServerVariables[&#8220;Cert_Server_Issuer&#8221;]&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \u670d\u52a1\u5668\u8bc1\u4e66\u7684\u53d1\u884c\u8005\u5b57\u6bb5 <br \/>Request.ServerVariables[&#8220;Cert_Server_Subject&#8221;]&nbsp;&nbsp;&nbsp;&nbsp; \u670d\u52a1\u5668\u8bc1\u4e66\u7684\u4e3b\u9898\u5b57\u6bb5 <br \/>Request.ServerVariables[&#8220;Cert_Subject&#8221;]&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \u5ba2\u6237\u7aef\u8bc1\u4e66\u7684\u4e3b\u9898\u5b57\u6bb5 <br \/>Request.ServerVariables[&#8220;Content_Type&#8221;]&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \u5ba2\u6237\u53d1\u9001\u7684form\u5185\u5bb9\u6216HTTPPUT\u7684\u6570\u636e\u7c7b\u578b<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Request.ServerVariables(&#8220;REMOTE_ADDR&#8221;)&#038;nbsp [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1,8],"tags":[],"class_list":["post-645","post","type-post","status-publish","format-standard","hentry","category-1","category-oldblog"],"views":261,"_links":{"self":[{"href":"http:\/\/www.ntxz.net\/index.php?rest_route=\/wp\/v2\/posts\/645","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.ntxz.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.ntxz.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.ntxz.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.ntxz.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=645"}],"version-history":[{"count":1,"href":"http:\/\/www.ntxz.net\/index.php?rest_route=\/wp\/v2\/posts\/645\/revisions"}],"predecessor-version":[{"id":747,"href":"http:\/\/www.ntxz.net\/index.php?rest_route=\/wp\/v2\/posts\/645\/revisions\/747"}],"wp:attachment":[{"href":"http:\/\/www.ntxz.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=645"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.ntxz.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=645"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.ntxz.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=645"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}