{"id":1338,"date":"2023-11-10T18:06:29","date_gmt":"2023-11-10T10:06:29","guid":{"rendered":"https:\/\/blog.humh.cn\/?p=1338"},"modified":"2023-11-10T18:13:12","modified_gmt":"2023-11-10T10:13:12","slug":"http%e9%87%8d%e5%ae%9a%e5%90%91post%e5%8f%98get","status":"publish","type":"post","link":"https:\/\/blog.humh.cn\/?p=1338","title":{"rendered":"http\u91cd\u5b9a\u5411POST\u53d8GET"},"content":{"rendered":"\n<blockquote class=\"wp-block-quote\"><p><span class=\"has-inline-color has-vivid-red-color\">\u672c\u6587\u4e3b\u8981\u5185\u5bb9\u975e\u539f\u521b\uff01<\/span>\u5f15\u7528\u81ea\u6587\u672b\u300c<strong>\u672c\u6587\u53c2\u8003<\/strong>\u300d\u9879<\/p><\/blockquote>\n\n\n\n<h1>\u95ee\u9898<\/h1>\n\n\n\n<p>\u53d1\u73b0\u4e00\u4e2a POST \u8bf7\u6c42\u901a\u8fc7 301 \u91cd\u5b9a\u5411\u5230\u65b0\u7684\u8bf7\u6c42\uff0c\u65b0\u7684\u8bf7\u6c42\u5374\u53d8\u6210\u4e86 GET\uff0c\u4e14\u8bf7\u6c42\u62a5\u6587\u6e05\u7a7a\u4e86\uff01<\/p>\n\n\n\n<h1>\u539f\u56e0<\/h1>\n\n\n\n<p>\u4e0d\u540c\u7c7b\u578b\u7684\u91cd\u5b9a\u5411\u6620\u5c04\u53ef\u4ee5\u5212\u5206\u4e3a\u4e09\u4e2a\u7c7b\u522b\uff1a<\/p>\n\n\n\n<ul><li>\u6c38\u4e45\u91cd\u5b9a\u5411<\/li><li>\u4e34\u65f6\u91cd\u5b9a\u5411<\/li><li>\u7279\u6b8a\u91cd\u5b9a\u5411<\/li><\/ul>\n\n\n\n<h2 id=\"\u6c38\u4e45\u91cd\u5b9a\u5411\">\u6c38\u4e45\u91cd\u5b9a\u5411<\/h2>\n\n\n\n<p>\u8fd9\u79cd\u91cd\u5b9a\u5411\u64cd\u4f5c\u662f\u6c38\u4e45\u6027\u7684\u3002\u5b83\u8868\u793a\u539f URL \u4e0d\u5e94\u518d\u88ab\u4f7f\u7528\uff0c\u800c\u9009\u7528\u65b0\u7684 URL \u66ff\u6362\u5b83\u3002\u641c\u7d22\u5f15\u64ce\u673a\u5668\u4eba\u3001RSS \u9605\u8bfb\u5668\u4ee5\u53ca\u5176\u4ed6\u722c\u866b\u5c06\u66f4\u65b0\u8d44\u6e90\u539f\u59cb\u7684 URL\u3002<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table><thead><tr><th>\u72b6\u6001\u7801<\/th><th>\u72b6\u6001\u6587\u672c<\/th><th>\u5904\u7406\u65b9\u6cd5<\/th><th>\u5178\u578b\u5e94\u7528\u573a\u666f<\/th><\/tr><\/thead><tbody><tr><td><code>301<\/code><\/td><td><code>Moved Permanently<\/code><\/td><td><a href=\"https:\/\/developer.mozilla.org\/zh-CN\/docs\/Web\/HTTP\/Methods\/GET\"><code>GET<\/code><\/a>&nbsp;\u65b9\u6cd5\u4e0d\u4f1a\u53d1\u751f\u53d8\u66f4\u3002\u5176\u4ed6\u65b9\u6cd5\u6709\u53ef\u80fd\u4f1a\u53d8\u66f4\u4e3a&nbsp;<a href=\"https:\/\/developer.mozilla.org\/zh-CN\/docs\/Web\/HTTP\/Methods\/GET\"><code>GET<\/code><\/a>&nbsp;\u65b9\u6cd5\u3002[1]<\/td><td>\u7f51\u7ad9\u91cd\u6784\u3002<\/td><\/tr><tr><td><code>308<\/code><\/td><td><code>Permanent Redirect<\/code><\/td><td>\u65b9\u6cd5\u548c\u6d88\u606f\u4e3b\u4f53\u90fd\u4e0d\u53d1\u751f\u53d8\u5316\u3002<\/td><td>\u4f7f\u7528\u7528\u4e8e\u975e GET \u94fe\u63a5\/\u64cd\u4f5c\u91cd\u7ec4\u7f51\u7ad9\u3002<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p>[1] \u8be5\u89c4\u8303\u65e0\u610f\u4f7f\u65b9\u6cd5\u53d1\u751f\u6539\u53d8\uff0c\u4f46\u5728\u5b9e\u9645\u5e94\u7528\u4e2d\u7528\u6237\u4ee3\u7406\u4f1a\u66f4\u6539\u5176\u65b9\u6cd5\u3002<a href=\"https:\/\/developer.mozilla.org\/zh-CN\/docs\/Web\/HTTP\/Status\/308\"><code>308<\/code><\/a>&nbsp;\u72b6\u6001\u7801\u88ab\u521b\u5efa\u7528\u6765\u6d88\u9664\u5728\u4f7f\u7528\u975e&nbsp;<code>GET<\/code>&nbsp;\u65b9\u6cd5\u65f6\u884c\u4e3a\u7684\u6b67\u4e49\u3002<\/p>\n\n\n\n<h2 id=\"\u4e34\u65f6\u91cd\u5b9a\u5411\">\u4e34\u65f6\u91cd\u5b9a\u5411<\/h2>\n\n\n\n<p>\u6709\u65f6\u5019\u8bf7\u6c42\u7684\u8d44\u6e90\u65e0\u6cd5\u4ece\u5176\u6807\u51c6\u5730\u5740\u8bbf\u95ee\uff0c\u4f46\u662f\u5374\u53ef\u4ee5\u4ece\u53e6\u5916\u7684\u5730\u65b9\u8bbf\u95ee\u3002\u5728\u8fd9\u79cd\u60c5\u51b5\u4e0b\uff0c\u53ef\u4ee5\u4f7f\u7528\u4e34\u65f6\u91cd\u5b9a\u5411\u3002<\/p>\n\n\n\n<p>\u641c\u7d22\u5f15\u64ce\u548c\u5176\u4ed6\u722c\u866b\u4e0d\u4f1a\u8bb0\u5f55\u65b0\u7684\u3001\u4e34\u65f6\u7684 URL\u3002\u5728\u521b\u5efa\u3001\u66f4\u65b0\u6216\u8005\u5220\u9664\u8d44\u6e90\u7684\u65f6\u5019\uff0c\u4e34\u65f6\u91cd\u5b9a\u5411\u4e5f\u53ef\u4ee5\u7528\u4e8e\u663e\u793a\u4e34\u65f6\u6027\u7684\u8fdb\u5ea6\u9875\u9762\u3002<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table><thead><tr><th>\u72b6\u6001\u7801<\/th><th>\u72b6\u6001\u6587\u672c<\/th><th>\u5904\u7406\u65b9\u6cd5<\/th><th>\u5178\u578b\u5e94\u7528\u573a\u666f<\/th><\/tr><\/thead><tbody><tr><td><code>302<\/code><\/td><td><code>Found<\/code><\/td><td><a href=\"https:\/\/developer.mozilla.org\/zh-CN\/docs\/Web\/HTTP\/Methods\/GET\"><code>GET<\/code><\/a>&nbsp;\u65b9\u6cd5\u4e0d\u4f1a\u53d1\u751f\u53d8\u66f4\u3002\u5176\u4ed6\u65b9\u6cd5\u6709\u53ef\u80fd\u4f1a\u53d8\u66f4\u4e3a&nbsp;<a href=\"https:\/\/developer.mozilla.org\/zh-CN\/docs\/Web\/HTTP\/Methods\/GET\"><code>GET<\/code><\/a>&nbsp;\u65b9\u6cd5\u3002[2]<\/td><td>\u7531\u4e8e\u4e0d\u53ef\u9884\u89c1\u7684\u539f\u56e0\u8be5\u9875\u9762\u6682\u4e0d\u53ef\u7528\u3002<\/td><\/tr><tr><td><code>303<\/code><\/td><td><code>See Other<\/code><\/td><td><a href=\"https:\/\/developer.mozilla.org\/zh-CN\/docs\/Web\/HTTP\/Methods\/GET\"><code>GET<\/code><\/a>&nbsp;\u65b9\u6cd5\u4e0d\u4f1a\u53d1\u751f\u53d8\u66f4\uff0c\u5176\u4ed6\u65b9\u6cd5\u4f1a<em>\u53d8\u66f4<\/em>\u4e3a&nbsp;<code>GET<\/code>&nbsp;\u65b9\u6cd5\uff08\u6d88\u606f\u4e3b\u4f53\u4e22\u5931\uff09\u3002<\/td><td>\u7528\u4e8e&nbsp;<a href=\"https:\/\/developer.mozilla.org\/zh-CN\/docs\/Web\/HTTP\/Methods\/PUT\"><code>PUT<\/code><\/a>&nbsp;\u6216&nbsp;<a href=\"https:\/\/developer.mozilla.org\/zh-CN\/docs\/Web\/HTTP\/Methods\/POST\"><code>POST<\/code><\/a>&nbsp;\u8bf7\u6c42\u5b8c\u6210\u4e4b\u540e\u91cd\u5b9a\u5411\uff0c\u6765\u9632\u6b62\u7531\u4e8e\u9875\u9762\u5237\u65b0\u5bfc\u81f4\u7684\u64cd\u4f5c\u7684\u91cd\u590d\u89e6\u53d1\u3002<\/td><\/tr><tr><td><code>307<\/code><\/td><td><code>Temporary Redirect<\/code><\/td><td>\u65b9\u6cd5\u548c\u6d88\u606f\u4e3b\u4f53\u90fd\u4e0d\u53d1\u751f\u53d8\u5316\u3002<\/td><td>\u7531\u4e8e\u4e0d\u53ef\u9884\u89c1\u7684\u539f\u56e0\u8be5\u9875\u9762\u6682\u4e0d\u53ef\u7528\u3002\u5f53\u7ad9\u70b9\u652f\u6301\u975e&nbsp;<code>GET<\/code>&nbsp;\u65b9\u6cd5\u7684\u94fe\u63a5\u6216\u64cd\u4f5c\u7684\u65f6\u5019\uff0c\u8be5\u72b6\u6001\u7801\u4f18\u4e8e 302 \u72b6\u6001\u7801\u3002<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p>[2] \u8be5\u89c4\u8303\u65e0\u610f\u4f7f\u65b9\u6cd5\u53d1\u751f\u6539\u53d8\uff0c\u4f46\u5728\u5b9e\u9645\u5e94\u7528\u4e2d\u7528\u6237\u4ee3\u7406\u4f1a\u6539\u53d8\u5176\u65b9\u6cd5\u3002<a href=\"https:\/\/developer.mozilla.org\/zh-CN\/docs\/Web\/HTTP\/Status\/307\"><code>307<\/code><\/a>&nbsp;\u72b6\u6001\u7801\u88ab\u521b\u5efa\u7528\u6765\u6d88\u9664\u5728\u4f7f\u7528\u975e&nbsp;<code>GET<\/code>&nbsp;\u65b9\u6cd5\u65f6\u884c\u4e3a\u7684\u6b67\u4e49\u3002<\/p>\n\n\n\n<h2 id=\"\u7279\u6b8a\u91cd\u5b9a\u5411\">\u7279\u6b8a\u91cd\u5b9a\u5411<\/h2>\n\n\n\n<p><a href=\"https:\/\/developer.mozilla.org\/zh-CN\/docs\/Web\/HTTP\/Status\/304\"><code>304<\/code><\/a>\uff08Not Modified\uff09\u4f1a\u4f7f\u9875\u9762\u8df3\u8f6c\u5230\u672c\u5730\u7684\u7f13\u5b58\u526f\u672c\u4e2d\uff08\u53ef\u80fd\u5df2\u8fc7\u65f6\uff09\uff0c\u800c&nbsp;<a href=\"https:\/\/developer.mozilla.org\/zh-CN\/docs\/Web\/HTTP\/Status\/300\"><code>300<\/code><\/a>\uff08Multiple Choice\uff09\u5219\u662f\u4e00\u79cd\u624b\u52a8\u91cd\u5b9a\u5411\uff1a\u5c06\u6d88\u606f\u4e3b\u4f53\u4ee5 Web \u9875\u9762\u5f62\u5f0f\u5448\u73b0\u5728\u6d4f\u89c8\u5668\u4e2d\uff0c\u5217\u51fa\u4e86\u53ef\u80fd\u7684\u91cd\u5b9a\u5411\u94fe\u63a5\uff0c\u7528\u6237\u53ef\u4ee5\u4ece\u4e2d\u8fdb\u884c\u9009\u62e9\u3002<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table><thead><tr><th>\u72b6\u6001\u7801<\/th><th>\u72b6\u6001\u6587\u672c<\/th><th>\u5178\u578b\u5e94\u7528\u573a\u666f<\/th><\/tr><\/thead><tbody><tr><td><code>300<\/code><\/td><td><code>Multiple Choice<\/code><\/td><td>\u4e0d\u5e38\u7528\uff1a\u6240\u6709\u7684\u9009\u9879\u5728\u6d88\u606f\u4e3b\u4f53\u7684 HTML \u9875\u9762\u4e2d\u5217\u51fa\u3002\u9f13\u52b1\u5728&nbsp;<a href=\"https:\/\/developer.mozilla.org\/zh-CN\/docs\/Web\/HTTP\/Headers\/Link\"><code>Link<\/code><\/a>&nbsp;\u6807\u5934\u4e2d\u52a0\u5165\u673a\u5668\u53ef\u8bfb\u7684&nbsp;<code>rel=alternate<\/code><\/td><\/tr><tr><td><code>304<\/code><\/td><td><code>Not Modified<\/code><\/td><td>\u53d1\u9001\u7528\u4e8e\u91cd\u65b0\u9a8c\u8bc1\u7684\u6761\u4ef6\u8bf7\u6c42\u3002\u8868\u793a\u7f13\u5b58\u7684\u54cd\u5e94\u4ecd\u7136\u662f\u65b0\u7684\u5e76\u4e14\u53ef\u4ee5\u4f7f\u7528\u3002<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<hr class=\"wp-block-separator\"\/>\n\n\n\n<h3>\u672c\u6587\u53c2\u8003<\/h3>\n\n\n\n<ul><li>HTTP \u7684\u91cd\u5b9a\u5411\uff1a<a href=\"https:\/\/developer.mozilla.org\/zh-CN\/docs\/Web\/HTTP\/Redirections\" target=\"_blank\" rel=\"noreferrer noopener\">https:\/\/developer.mozilla.org\/zh-CN\/docs\/Web\/HTTP\/Redirections<\/a><\/li><\/ul>\n","protected":false},"excerpt":{"rendered":"<p>\u672c\u6587\u4e3b\u8981\u5185\u5bb9\u975e\u539f\u521b\uff01\u5f15\u7528\u81ea\u6587\u672b\u300c\u672c\u6587\u53c2\u8003\u300d\u9879 \u95ee\u9898 \u53d1\u73b0\u4e00\u4e2a POST \u8bf7\u6c42\u901a\u8fc7 301 \u91cd\u5b9a\u5411\u5230\u65b0\u7684\u8bf7\u6c42\uff0c\u65b0 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[11],"tags":[78],"_links":{"self":[{"href":"https:\/\/blog.humh.cn\/index.php?rest_route=\/wp\/v2\/posts\/1338"}],"collection":[{"href":"https:\/\/blog.humh.cn\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.humh.cn\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.humh.cn\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.humh.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1338"}],"version-history":[{"count":4,"href":"https:\/\/blog.humh.cn\/index.php?rest_route=\/wp\/v2\/posts\/1338\/revisions"}],"predecessor-version":[{"id":1345,"href":"https:\/\/blog.humh.cn\/index.php?rest_route=\/wp\/v2\/posts\/1338\/revisions\/1345"}],"wp:attachment":[{"href":"https:\/\/blog.humh.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1338"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.humh.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1338"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.humh.cn\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1338"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}