{"id":47110,"date":"2024-10-07T11:28:13","date_gmt":"2024-10-07T03:28:13","guid":{"rendered":"https:\/\/server.hk\/cnblog\/47110\/"},"modified":"2024-10-07T11:28:13","modified_gmt":"2024-10-07T03:28:13","slug":"iis%e7%8b%80%e6%85%8b%e7%a2%bc-200-ok%ef%bc%88%e6%ad%a3%e5%b8%b8%ef%bc%89","status":"publish","type":"post","link":"https:\/\/server.hk\/cnblog\/47110\/","title":{"rendered":"IIS\u72c0\u614b\u78bc &#8211; 200 OK\uff08\u6b63\u5e38\uff09"},"content":{"rendered":"<h1 id=\"iis%e7%8b%80%e6%85%8b%e7%a2%bc-200-ok%ef%bc%88%e6%ad%a3%e5%b8%b8%ef%bc%89-tcMGDlWeTO\">IIS\u72c0\u614b\u78bc &#8211; 200 OK\uff08\u6b63\u5e38\uff09<\/h1>\n<p>\u5728\u7db2\u7d61\u61c9\u7528\u7a0b\u5e8f\u7684\u904b\u884c\u4e2d\uff0cHTTP\u72c0\u614b\u78bc\u626e\u6f14\u8457\u81f3\u95dc\u91cd\u8981\u7684\u89d2\u8272\u3002\u9019\u4e9b\u72c0\u614b\u78bc\u4e0d\u50c5\u544a\u8a34\u7528\u6236\u8acb\u6c42\u7684\u7d50\u679c\uff0c\u9084\u5e6b\u52a9\u958b\u767c\u8005\u548c\u7cfb\u7d71\u7ba1\u7406\u54e1\u4e86\u89e3\u4f3a\u670d\u5668\u7684\u904b\u884c\u72c0\u614b\u3002\u672c\u6587\u5c07\u6df1\u5165\u63a2\u8a0eIIS\uff08Internet Information Services\uff09\u4e2d\u7684\u72c0\u614b\u78bc200 OK\uff0c\u4e26\u5206\u6790\u5176\u610f\u7fa9\u53ca\u61c9\u7528\u3002<\/p>\n<h2 id=\"%e4%bb%80%e9%ba%bc%e6%98%afhttp%e7%8b%80%e6%85%8b%e7%a2%bc%ef%bc%9f-tcMGDlWeTO\">\u4ec0\u9ebc\u662fHTTP\u72c0\u614b\u78bc\uff1f<\/h2>\n<p>HTTP\u72c0\u614b\u78bc\u662f\u7531\u4f3a\u670d\u5668\u8fd4\u56de\u7d66\u5ba2\u6236\u7aef\u7684\u4e09\u4f4d\u6578\u5b57\u78bc\uff0c\u8868\u793a\u8acb\u6c42\u7684\u8655\u7406\u7d50\u679c\u3002\u9019\u4e9b\u72c0\u614b\u78bc\u5206\u70ba\u4e94\u500b\u985e\u5225\uff1a<\/p>\n<ul>\n<li>1xx\uff1a\u4fe1\u606f\u6027\u72c0\u614b\u78bc<\/li>\n<li>2xx\uff1a\u6210\u529f\u72c0\u614b\u78bc<\/li>\n<li>3xx\uff1a\u91cd\u5b9a\u5411\u72c0\u614b\u78bc<\/li>\n<li>4xx\uff1a\u5ba2\u6236\u7aef\u932f\u8aa4\u72c0\u614b\u78bc<\/li>\n<li>5xx\uff1a\u4f3a\u670d\u5668\u932f\u8aa4\u72c0\u614b\u78bc<\/li>\n<\/ul>\n<h2 id=\"200-ok%e7%9a%84%e5%ae%9a%e7%be%a9-tcMGDlWeTO\">200 OK\u7684\u5b9a\u7fa9<\/h2>\n<p>\u72c0\u614b\u78bc200 OK\u662f\u6700\u5e38\u898b\u7684\u6210\u529f\u72c0\u614b\u78bc\u4e4b\u4e00\uff0c\u8868\u793a\u4f3a\u670d\u5668\u6210\u529f\u8655\u7406\u4e86\u8acb\u6c42\u3002\u7576\u7528\u6236\u5728\u700f\u89bd\u5668\u4e2d\u8f38\u5165\u4e00\u500bURL\u4e26\u6210\u529f\u7372\u53d6\u8a72\u9801\u9762\u6642\uff0c\u4f3a\u670d\u5668\u6703\u8fd4\u56de200 OK\u72c0\u614b\u78bc\u3002\u9019\u610f\u5473\u8457\u8acb\u6c42\u7684\u8cc7\u6e90\u5df2\u88ab\u627e\u5230\u4e26\u4e14\u53ef\u4ee5\u6b63\u5e38\u986f\u793a\u3002<\/p>\n<h3 id=\"200-ok%e7%9a%84%e6%87%89%e7%94%a8%e5%a0%b4%e6%99%af-tcMGDlWeTO\">200 OK\u7684\u61c9\u7528\u5834\u666f<\/h3>\n<p>\u4ee5\u4e0b\u662f\u4e00\u4e9b\u5e38\u898b\u7684\u61c9\u7528\u5834\u666f\uff0c\u7576\u4f3a\u670d\u5668\u8fd4\u56de200 OK\u6642\uff0c\u8868\u793a\u8acb\u6c42\u6210\u529f\uff1a<\/p>\n<ul>\n<li><strong>\u975c\u614b\u8cc7\u6e90\u8acb\u6c42\uff1a<\/strong>\u7576\u7528\u6236\u8acb\u6c42\u4e00\u500b\u975c\u614b\u6587\u4ef6\uff08\u5982HTML\u3001CSS\u3001JavaScript\u6216\u5716\u7247\uff09\u6642\uff0c\u4f3a\u670d\u5668\u6703\u8fd4\u56de200 OK\uff0c\u4e26\u9644\u4e0a\u8a72\u6587\u4ef6\u7684\u5167\u5bb9\u3002<\/li>\n<li><strong>API\u8acb\u6c42\uff1a<\/strong>\u5728RESTful API\u4e2d\uff0c\u7576\u7528\u6236\u6210\u529f\u7372\u53d6\u6578\u64da\u6642\uff0c\u4f3a\u670d\u5668\u6703\u8fd4\u56de200 OK\uff0c\u4e26\u5728\u97ff\u61c9\u4e2d\u5305\u542b\u6240\u8acb\u6c42\u7684\u6578\u64da\u3002<\/li>\n<li><strong>\u8868\u55ae\u63d0\u4ea4\uff1a<\/strong>\u7576\u7528\u6236\u63d0\u4ea4\u8868\u55ae\u4e26\u6210\u529f\u8655\u7406\u6642\uff0c\u4f3a\u670d\u5668\u53ef\u80fd\u6703\u8fd4\u56de200 OK\uff0c\u8868\u793a\u64cd\u4f5c\u6210\u529f\u3002<\/li>\n<\/ul>\n<h2 id=\"%e5%a6%82%e4%bd%95%e6%aa%a2%e6%9f%a5http%e7%8b%80%e6%85%8b%e7%a2%bc-tcMGDlWeTO\">\u5982\u4f55\u6aa2\u67e5HTTP\u72c0\u614b\u78bc<\/h2>\n<p>\u958b\u767c\u8005\u53ef\u4ee5\u4f7f\u7528\u591a\u7a2e\u5de5\u5177\u4f86\u6aa2\u67e5HTTP\u72c0\u614b\u78bc\u3002\u4ee5\u4e0b\u662f\u4e00\u4e9b\u5e38\u7528\u7684\u65b9\u6cd5\uff1a<\/p>\n<ul>\n<li><strong>\u700f\u89bd\u5668\u958b\u767c\u8005\u5de5\u5177\uff1a<\/strong>\u5927\u591a\u6578\u73fe\u4ee3\u700f\u89bd\u5668\u90fd\u63d0\u4f9b\u958b\u767c\u8005\u5de5\u5177\uff0c\u5141\u8a31\u7528\u6236\u67e5\u770b\u7db2\u7d61\u8acb\u6c42\u548c\u97ff\u61c9\u7684\u8a73\u7d30\u4fe1\u606f\uff0c\u5305\u62ecHTTP\u72c0\u614b\u78bc\u3002<\/li>\n<li><strong>\u547d\u4ee4\u884c\u5de5\u5177\uff1a<\/strong>\u4f7f\u7528curl\u547d\u4ee4\u53ef\u4ee5\u8f15\u9b06\u6aa2\u67e5HTTP\u72c0\u614b\u78bc\u3002\u4f8b\u5982\uff0c\u57f7\u884c\u4ee5\u4e0b\u547d\u4ee4\uff1a<\/strong><\/li>\n<pre><code>curl -I http:\/\/example.com<\/code><\/pre>\n<li><strong>\u5728\u7dda\u6aa2\u67e5\u5de5\u5177\uff1a<\/strong>\u6709\u8a31\u591a\u7db2\u7ad9\u63d0\u4f9bHTTP\u72c0\u614b\u78bc\u6aa2\u67e5\u670d\u52d9\uff0c\u7528\u6236\u53ea\u9700\u8f38\u5165URL\u5373\u53ef\u7372\u53d6\u72c0\u614b\u78bc\u3002<\/li>\n<\/ul>\n<h2 id=\"200-ok%e7%9a%84%e6%84%8f%e7%be%a9-tcMGDlWeTO\">200 OK\u7684\u610f\u7fa9<\/h2>\n<p>\u72c0\u614b\u78bc200 OK\u4e0d\u50c5\u8868\u793a\u8acb\u6c42\u6210\u529f\uff0c\u9084\u610f\u5473\u8457\u4f3a\u670d\u5668\u7684\u904b\u884c\u6b63\u5e38\u3002\u9019\u5c0d\u65bc\u7528\u6236\u9ad4\u9a57\u81f3\u95dc\u91cd\u8981\uff0c\u56e0\u70ba\u5b83\u78ba\u4fdd\u4e86\u7528\u6236\u80fd\u5920\u7372\u5f97\u6240\u9700\u7684\u4fe1\u606f\u6216\u8cc7\u6e90\u3002\u5c0d\u65bc\u958b\u767c\u8005\u4f86\u8aaa\uff0c\u9019\u4e5f\u662f\u4e00\u500b\u826f\u597d\u7684\u6307\u6a19\uff0c\u8868\u660e\u61c9\u7528\u7a0b\u5e8f\u7684\u529f\u80fd\u6b63\u5e38\u904b\u884c\u3002<\/p>\n<h2 id=\"%e7%b8%bd%e7%b5%90-tcMGDlWeTO\">\u7e3d\u7d50<\/h2>\n<p>\u5728IIS\u4e2d\uff0c\u72c0\u614b\u78bc200 OK\u662f\u6700\u5e38\u898b\u7684\u6210\u529f\u97ff\u61c9\uff0c\u8868\u793a\u8acb\u6c42\u5df2\u6210\u529f\u8655\u7406\u3002\u4e86\u89e3\u9019\u4e00\u72c0\u614b\u78bc\u7684\u610f\u7fa9\u53ca\u5176\u61c9\u7528\u5834\u666f\uff0c\u5c0d\u65bc\u958b\u767c\u8005\u548c\u7cfb\u7d71\u7ba1\u7406\u54e1\u4f86\u8aaa\u90fd\u662f\u975e\u5e38\u91cd\u8981\u7684\u3002\u82e5\u60a8\u9700\u8981\u9032\u4e00\u6b65\u4e86\u89e3\u5982\u4f55\u512a\u5316\u60a8\u7684\u7db2\u7ad9\u6027\u80fd\u6216\u5c0b\u627e\u5408\u9069\u7684 <a href=\"https:\/\/server.hk\">\u9999\u6e2fVPS<\/a> \u89e3\u6c7a\u65b9\u6848\uff0c\u8acb\u8a2a\u554f\u6211\u5011\u7684\u7db2\u7ad9\u4ee5\u7372\u53d6\u66f4\u591a\u4fe1\u606f\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u4e86\u89e3IIS\u72c0\u614b\u78bc200 OK\uff0c\u8868\u793a\u8acb\u6c42\u6210\u529f\uff0c\u4f3a\u670d\u5668\u5df2\u6b63\u78ba\u8655\u7406\u4e26\u8fd4\u56de\u6240\u9700\u7684\u8cc7\u6e90\u3002<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4924],"tags":[],"class_list":["post-47110","post","type-post","status-publish","format-standard","hentry","category-setup-tutorials"],"_links":{"self":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/47110","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/comments?post=47110"}],"version-history":[{"count":1,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/47110\/revisions"}],"predecessor-version":[{"id":47111,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/47110\/revisions\/47111"}],"wp:attachment":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/media?parent=47110"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/categories?post=47110"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/tags?post=47110"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}