{"id":170050,"date":"2020-01-20T09:47:35","date_gmt":"2020-01-20T01:47:35","guid":{"rendered":"https:\/\/lrxjmw.cn\/?p=170050"},"modified":"2020-01-13T13:17:38","modified_gmt":"2020-01-13T05:17:38","slug":"introduction-to-http","status":"publish","type":"post","link":"https:\/\/lrxjmw.cn\/introduction-to-http.html","title":{"rendered":"HTTP \u72b6\u6001\u6d88\u606f\u4ecb\u7ecd"},"content":{"rendered":"\n\n\n
\u5bfc\u8bfb<\/td>\n\u5f53\u6d4f\u89c8\u5668\u4ece web \u670d\u52a1\u5668\u8bf7\u6c42\u670d\u52a1\u65f6\uff0c\u53ef\u80fd\u4f1a\u53d1\u751f\u9519\u8bef\u3002\u4ee5\u4e0b\u5217\u4e3e\u4e86\u6709\u53ef\u80fd\u4f1a\u8fd4\u56de\u7684\u4e00\u7cfb\u5217 HTTP \u72b6\u6001\u6d88\u606f<\/strong><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n

\"\"<\/p>\n

1xx: \u4fe1\u606f<\/strong><\/div>\n\n\n\n\n\n\n
\u6d88\u606f\uff1a<\/th>\n\u63cf\u8ff0\uff1a<\/th>\n<\/tr>\n
100 Continue<\/td>\n\u670d\u52a1\u5668\u4ec5\u63a5\u6536\u5230\u90e8\u5206\u8bf7\u6c42\uff0c\u4f46\u662f\u4e00\u65e6\u670d\u52a1\u5668\u5e76\u6ca1\u6709\u62d2\u7edd\u8be5\u8bf7\u6c42\uff0c\u5ba2\u6237\u7aef\u5e94\u8be5\u7ee7\u7eed\u53d1\u9001\u5176\u4f59\u7684\u8bf7\u6c42\u3002<\/td>\n<\/tr>\n
101 Switching Protocols<\/td>\n\u670d\u52a1\u5668\u8f6c\u6362\u534f\u8bae\uff1a\u670d\u52a1\u5668\u5c06\u9075\u4ece\u5ba2\u6237\u7684\u8bf7\u6c42\u8f6c\u6362\u5230\u53e6\u5916\u4e00\u79cd\u534f\u8bae\u3002<\/td>\n<\/tr>\n
103 Checkpoint<\/td>\n\u7528\u4e8e PUT \u6216\u8005 POST \u8bf7\u6c42\u6062\u590d\u5931\u8d25\u65f6\u7684\u6062\u590d\u8bf7\u6c42\u5efa\u8bae\u3002<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n
2xx: \u6210\u529f<\/strong><\/div>\n\n\n\n\n\n\n\n\n\n\n
\u6d88\u606f\uff1a<\/th>\n\u63cf\u8ff0\uff1a<\/th>\n<\/tr>\n
200 OK<\/td>\n\u8bf7\u6c42\u6210\u529f\uff08\u8fd9\u662f\u5bf9HTTP\u8bf7\u6c42\u6210\u529f\u7684\u6807\u51c6\u5e94\u7b54\u3002\uff09<\/td>\n<\/tr>\n
201 Created<\/td>\n\u8bf7\u6c42\u88ab\u521b\u5efa\u5b8c\u6210\uff0c\u540c\u65f6\u65b0\u7684\u8d44\u6e90\u88ab\u521b\u5efa\u3002\n <\/td>\n<\/tr>\n
202 Accepted<\/td>\n\u4f9b\u5904\u7406\u7684\u8bf7\u6c42\u5df2\u88ab\u63a5\u53d7\uff0c\u4f46\u662f\u5904\u7406\u672a\u5b8c\u6210\u3002\n <\/td>\n<\/tr>\n
203 Non-Authoritative Information<\/td>\n\u8bf7\u6c42\u5df2\u7ecf\u88ab\u6210\u529f\u5904\u7406\uff0c\u4f46\u662f\u4e00\u4e9b\u5e94\u7b54\u5934\u53ef\u80fd\u4e0d\u6b63\u786e\uff0c\u56e0\u4e3a\u4f7f\u7528\u7684\u662f\u5176\u4ed6\u6587\u6863\u7684\u62f7\u8d1d\u3002<\/td>\n<\/tr>\n
204 No Content<\/td>\n\u8bf7\u6c42\u5df2\u7ecf\u88ab\u6210\u529f\u5904\u7406\uff0c\u4f46\u662f\u6ca1\u6709\u8fd4\u56de\u65b0\u6587\u6863\u3002\u6d4f\u89c8\u5668\u5e94\u8be5\u7ee7\u7eed\u663e\u793a\u539f\u6765\u7684\u6587\u6863\u3002\u5982\u679c\u7528\u6237\u5b9a\u671f\u5730\u5237\u65b0\u9875\u9762\uff0c\u800cServlet\u53ef\u4ee5\u786e\u5b9a\u7528\u6237\u6587\u6863\u8db3\u591f\u65b0\uff0c\u8fd9\u4e2a\u72b6\u6001\u4ee3\u7801\u662f\u5f88\u6709\u7528\u7684\u3002<\/td>\n<\/tr>\n
205 Reset Content<\/td>\n\u8bf7\u6c42\u5df2\u7ecf\u88ab\u6210\u529f\u5904\u7406\uff0c\u4f46\u662f\u6ca1\u6709\u8fd4\u56de\u65b0\u6587\u6863\u3002\u4f46\u6d4f\u89c8\u5668\u5e94\u8be5\u91cd\u7f6e\u5b83\u6240\u663e\u793a\u7684\u5185\u5bb9\u3002\u7528\u6765\u5f3a\u5236\u6d4f\u89c8\u5668\u6e05\u9664\u8868\u5355\u8f93\u5165\u5185\u5bb9\u3002<\/td>\n<\/tr>\n
206 Partial Content<\/td>\n\u5ba2\u6237\u53d1\u9001\u4e86\u4e00\u4e2a\u5e26\u6709Range\u5934\u7684GET\u8bf7\u6c42\uff0c\u670d\u52a1\u5668\u5b8c\u6210\u4e86\u5b83\u3002<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n
3xx: \u91cd\u5b9a\u5411<\/strong><\/div>\n\n\n\n\n\n\n\n\n\n\n\n\n
\u6d88\u606f\uff1a<\/th>\n\u63cf\u8ff0\uff1a<\/th>\n<\/tr>\n
300 Multiple Choices<\/td>\n\u591a\u91cd\u9009\u62e9\u3002\u94fe\u63a5\u5217\u8868\u3002\u7528\u6237\u53ef\u4ee5\u9009\u62e9\u67d0\u94fe\u63a5\u5230\u8fbe\u76ee\u7684\u5730\u3002\u6700\u591a\u5141\u8bb8\u4e94\u4e2a\u5730\u5740\u3002<\/td>\n<\/tr>\n
301 Moved Permanently<\/td>\n\u6240\u8bf7\u6c42\u7684\u9875\u9762\u5df2\u7ecf\u8f6c\u79fb\u81f3\u65b0\u7684 URL \u3002\n <\/td>\n<\/tr>\n
302 Found<\/td>\n\u6240\u8bf7\u6c42\u7684\u9875\u9762\u5df2\u7ecf\u4e34\u65f6\u8f6c\u79fb\u81f3\u65b0\u7684 URL \u3002\n <\/td>\n<\/tr>\n
303 See Other<\/td>\n\u6240\u8bf7\u6c42\u7684\u9875\u9762\u53ef\u5728\u522b\u7684 URL \u4e0b\u88ab\u627e\u5230\u3002<\/td>\n<\/tr>\n
304 Not Modified<\/td>\n\u672a\u6309\u9884\u671f\u4fee\u6539\u6587\u6863\u3002\u5ba2\u6237\u7aef\u6709\u7f13\u51b2\u7684\u6587\u6863\u5e76\u53d1\u51fa\u4e86\u4e00\u4e2a\u6761\u4ef6\u6027\u7684\u8bf7\u6c42\uff08\u4e00\u822c\u662f\u63d0\u4f9bIf-Modified-Since\u5934\u8868\u793a\u5ba2\u6237\u53ea\u60f3\u6bd4\u6307\u5b9a\u65e5\u671f\u66f4\u65b0\u7684\u6587\u6863\uff09\u3002\u670d\u52a1\u5668\u544a\u8bc9\u5ba2\u6237\uff0c\u539f\u6765\u7f13\u51b2\u7684\u6587\u6863\u8fd8\u53ef\u4ee5\u7ee7\u7eed\u4f7f\u7528\u3002<\/td>\n<\/tr>\n
305 Use Proxy<\/td>\n\u5ba2\u6237\u8bf7\u6c42\u7684\u6587\u6863\u5e94\u8be5\u901a\u8fc7Location\u5934\u6240\u6307\u660e\u7684\u4ee3\u7406\u670d\u52a1\u5668\u63d0\u53d6\u3002<\/td>\n<\/tr>\n
306 Switch Proxy<\/td>\n\u76ee\u524d\u5df2\u4e0d\u518d\u4f7f\u7528\uff0c\u4f46\u662f\u4ee3\u7801\u4f9d\u7136\u88ab\u4fdd\u7559\u3002<\/i><\/td>\n<\/tr>\n
307 Temporary Redirect<\/td>\n\u88ab\u8bf7\u6c42\u7684\u9875\u9762\u5df2\u7ecf\u4e34\u65f6\u79fb\u81f3\u65b0\u7684 URL \u3002<\/td>\n<\/tr>\n
308 Resume Incomplete<\/td>\n\u7528\u4e8e PUT \u6216\u8005 POST \u8bf7\u6c42\u6062\u590d\u5931\u8d25\u65f6\u7684\u6062\u590d\u8bf7\u6c42\u5efa\u8bae\u3002<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n
4xx: \u5ba2\u6237\u7aef\u9519\u8bef<\/strong><\/div>\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
\u6d88\u606f\uff1a<\/th>\n\u63cf\u8ff0\uff1a<\/th>\n<\/tr>\n
400 Bad Request<\/td>\n\u56e0\u4e3a\u8bed\u6cd5\u9519\u8bef\uff0c\u670d\u52a1\u5668\u672a\u80fd\u7406\u89e3\u8bf7\u6c42\u3002<\/td>\n<\/tr>\n
401 Unauthorized<\/td>\n\u5408\u6cd5\u8bf7\u6c42\uff0c\u4f46\u5bf9\u88ab\u8bf7\u6c42\u9875\u9762\u7684\u8bbf\u95ee\u88ab\u7981\u6b62\u3002\u56e0\u4e3a\u88ab\u8bf7\u6c42\u7684\u9875\u9762\u9700\u8981\u8eab\u4efd\u9a8c\u8bc1\uff0c\u5ba2\u6237\u7aef\u6ca1\u6709\u63d0\u4f9b\u6216\u8005\u8eab\u4efd\u9a8c\u8bc1\u5931\u8d25\u3002<\/td>\n<\/tr>\n
402 Payment Required<\/td>\n\u6b64\u4ee3\u7801\u5c1a\u65e0\u6cd5\u4f7f\u7528\u3002<\/i>\n <\/td>\n<\/tr>\n
403 Forbidden<\/td>\n\u5408\u6cd5\u8bf7\u6c42\uff0c\u4f46\u5bf9\u88ab\u8bf7\u6c42\u9875\u9762\u7684\u8bbf\u95ee\u88ab\u7981\u6b62\u3002<\/td>\n<\/tr>\n
404 Not Found<\/td>\n\u670d\u52a1\u5668\u65e0\u6cd5\u627e\u5230\u88ab\u8bf7\u6c42\u7684\u9875\u9762\u3002<\/td>\n<\/tr>\n
405 Method Not Allowed<\/td>\n\u8bf7\u6c42\u4e2d\u6307\u5b9a\u7684\u65b9\u6cd5\u4e0d\u88ab\u5141\u8bb8\u3002<\/td>\n<\/tr>\n
406 Not Acceptable<\/td>\n\u670d\u52a1\u5668\u751f\u6210\u7684\u54cd\u5e94\u65e0\u6cd5\u88ab\u5ba2\u6237\u7aef\u6240\u63a5\u53d7\u3002\n <\/td>\n<\/tr>\n
407 Proxy Authentication Required<\/td>\n\u7528\u6237\u5fc5\u987b\u9996\u5148\u4f7f\u7528\u4ee3\u7406\u670d\u52a1\u5668\u8fdb\u884c\u9a8c\u8bc1\uff0c\u8fd9\u6837\u8bf7\u6c42\u624d\u4f1a\u88ab\u5904\u7406\u3002\n <\/td>\n<\/tr>\n
408 Request Timeout<\/td>\n\u8bf7\u6c42\u8d85\u51fa\u4e86\u670d\u52a1\u5668\u7684\u7b49\u5f85\u65f6\u95f4\u3002\n <\/td>\n<\/tr>\n
409 Conflict<\/td>\n\u7531\u4e8e\u51b2\u7a81\uff0c\u8bf7\u6c42\u65e0\u6cd5\u88ab\u5b8c\u6210\u3002<\/td>\n<\/tr>\n
410 Gone<\/td>\n\u88ab\u8bf7\u6c42\u7684\u9875\u9762\u4e0d\u53ef\u7528\u3002<\/td>\n<\/tr>\n
411 Length Required<\/td>\n\"Content-Length\" \u672a\u88ab\u5b9a\u4e49\u3002\u5982\u679c\u65e0\u6b64\u5185\u5bb9\uff0c\u670d\u52a1\u5668\u4e0d\u4f1a\u63a5\u53d7\u8bf7\u6c42\u3002\n <\/td>\n<\/tr>\n
412 Precondition Failed<\/td>\n\u8bf7\u6c42\u4e2d\u7684\u524d\u63d0\u6761\u4ef6\u88ab\u670d\u52a1\u5668\u8bc4\u4f30\u4e3a\u5931\u8d25\u3002\n <\/td>\n<\/tr>\n
413 Request Entity Too Large<\/td>\n\u7531\u4e8e\u6240\u8bf7\u6c42\u7684\u5b9e\u4f53\u592a\u5927\uff0c\u670d\u52a1\u5668\u4e0d\u4f1a\u63a5\u53d7\u8bf7\u6c42\u3002\n <\/td>\n<\/tr>\n
414 Request-URI Too Long<\/td>\n\u7531\u4e8e URL \u592a\u957f\uff0c\u670d\u52a1\u5668\u4e0d\u4f1a\u63a5\u53d7\u8bf7\u6c42\u3002\u5f53 POST \u8bf7\u6c42\u88ab\u8f6c\u6362\u4e3a\u5e26\u6709\u5f88\u957f\u7684\u67e5\u8be2\u4fe1\u606f\u7684 GET \u8bf7\u6c42\u65f6\uff0c\u5c31\u4f1a\u53d1\u751f\u8fd9\u79cd\u60c5\u51b5\u3002\n <\/td>\n<\/tr>\n
415 Unsupported Media Type<\/td>\n\u7531\u4e8e\u5a92\u4ecb\u7c7b\u578b\u4e0d\u88ab\u652f\u6301\uff0c\u670d\u52a1\u5668\u4e0d\u4f1a\u63a5\u53d7\u8bf7\u6c42\u3002\n <\/td>\n<\/tr>\n
416 Requested Range Not Satisfiable<\/td>\n\u5ba2\u6237\u7aef\u8bf7\u6c42\u90e8\u5206\u6587\u6863\uff0c\u4f46\u662f\u670d\u52a1\u5668\u4e0d\u80fd\u63d0\u4f9b\u88ab\u8bf7\u6c42\u7684\u90e8\u5206\u3002<\/td>\n<\/tr>\n
417 Expectation Failed<\/td>\n\u670d\u52a1\u5668\u4e0d\u80fd\u6ee1\u8db3\u5ba2\u6237\u5728\u8bf7\u6c42\u4e2d\u6307\u5b9a\u7684\u8bf7\u6c42\u5934\u3002<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n
5xx: \u670d\u52a1\u5668\u9519\u8bef<\/strong><\/div>\n\n\n\n\n\n\n\n\n\n\n
\u6d88\u606f\uff1a<\/th>\n\u63cf\u8ff0\uff1a<\/th>\n<\/tr>\n
500 Internal Server Error<\/td>\n\u8bf7\u6c42\u672a\u5b8c\u6210\u3002\u670d\u52a1\u5668\u9047\u5230\u4e0d\u53ef\u9884\u77e5\u7684\u60c5\u51b5\u3002<\/td>\n<\/tr>\n
501 Not Implemented<\/td>\n\u8bf7\u6c42\u672a\u5b8c\u6210\u3002\u670d\u52a1\u5668\u4e0d\u652f\u6301\u6240\u8bf7\u6c42\u7684\u529f\u80fd\uff0c\u6216\u8005\u670d\u52a1\u5668\u65e0\u6cd5\u5b8c\u6210\u8bf7\u6c42\u3002<\/td>\n<\/tr>\n
502 Bad Gateway<\/td>\n\u8bf7\u6c42\u672a\u5b8c\u6210\u3002\u670d\u52a1\u5668\u5145\u5f53\u7f51\u5173\u6216\u8005\u4ee3\u7406\u7684\u89d2\u8272\u65f6\uff0c\u4ece\u4e0a\u6e38\u670d\u52a1\u5668\u6536\u5230\u4e00\u4e2a\u65e0\u6548\u7684\u54cd\u5e94\u3002<\/td>\n<\/tr>\n
503 Service Unavailable<\/td>\n\u670d\u52a1\u5668\u5f53\u524d\u4e0d\u53ef\u7528\uff08\u8fc7\u8f7d\u6216\u8005\u5f53\u673a\uff09\u3002\n <\/td>\n<\/tr>\n
504 Gateway Timeout<\/td>\n\u7f51\u5173\u8d85\u65f6\u3002\u670d\u52a1\u5668\u5145\u5f53\u7f51\u5173\u6216\u8005\u4ee3\u7406\u7684\u89d2\u8272\u65f6\uff0c\u672a\u80fd\u4ece\u4e0a\u6e38\u670d\u52a1\u5668\u6536\u5230\u4e00\u4e2a\u53ca\u65f6\u7684\u54cd\u5e94\u3002<\/td>\n<\/tr>\n
505 HTTP Version Not Supported<\/td>\n\u670d\u52a1\u5668\u4e0d\u652f\u6301\u8bf7\u6c42\u4e2d\u6307\u660e\u7684HTTP\u534f\u8bae\u7248\u672c\u3002\n <\/td>\n<\/tr>\n
511 Network Authentication Required<\/td>\n\u7528\u6237\u9700\u8981\u63d0\u4f9b\u8eab\u4efd\u9a8c\u8bc1\u6765\u83b7\u53d6\u7f51\u7edc\u8bbf\u95ee\u5165\u53e3\u3002<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n","protected":false},"excerpt":{"rendered":"

\u6d88\u606f\uff1a \u63cf\u8ff0\uff1a 100 Continue \u670d\u52a1\u5668\u4ec5\u63a5\u6536\u5230\u90e8\u5206\u8bf7\u6c42\uff0c\u4f46\u662f\u4e00\u65e6\u670d\u52a1\u5668\u5e76\u6ca1\u6709\u62d2\u7edd\u8be5\u8bf7\u6c42\uff0c\u5ba2\u6237\u7aef\u5e94\u8be5\u7ee7 […]<\/p>\n","protected":false},"author":1481,"featured_media":170052,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[55],"tags":[],"class_list":["post-170050","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-thread"],"acf":[],"_links":{"self":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/170050","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/users\/1481"}],"replies":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/comments?post=170050"}],"version-history":[{"count":5,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/170050\/revisions"}],"predecessor-version":[{"id":170057,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/170050\/revisions\/170057"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media\/170052"}],"wp:attachment":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media?parent=170050"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/categories?post=170050"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/tags?post=170050"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}