{"id":94252,"date":"2020-04-29T08:34:18","date_gmt":"2020-04-29T00:34:18","guid":{"rendered":"http:\/\/4563.org\/?p=94252"},"modified":"2020-04-29T08:34:18","modified_gmt":"2020-04-29T00:34:18","slug":"%e5%8d%8e%e4%b8%ba%e6%89%8b%e6%9c%ba%e4%b8%8d%e8%ae%a4-http-303","status":"publish","type":"post","link":"http:\/\/4563.org\/?p=94252","title":{"rendered":"\u534e\u4e3a\u624b\u673a\u4e0d\u8ba4 HTTP 303"},"content":{"rendered":"<div>\n<div>\n<div>\n<h1>                  \u534e\u4e3a\u624b\u673a\u4e0d\u8ba4 HTTP 303               <\/h1>\n<p> <\/p>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : mogutouer <\/span>  <span><i><\/i> 15<\/span> <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<\/p><\/div>\n<div isfirst=\"1\">                        \u6211\u4eec\u4e00\u4e2a\u5c0f\u7a0b\u5e8f\uff0c\u56e0\u4e3a\u5185\u5bb9\u6709\u4e9b\u662f\u63d0\u524d\u751f\u6210\u7684\uff0c\u6240\u4ee5\u83b7\u53d6\u7528\u6237 ID \u540e\uff0c\u5c31 303 \u8f6c\u5230\u63d0\u524d\u5728 OSS \u4e0a\u7684\u4e00\u4e2a\u5bf9\u5e94\u7684 json \u6587\u4ef6\uff0c\u8fd0\u884c\u4e86\u4e00\u6bb5\u65f6\u95f4\u540e\u5176\u4e2d\u6709\u4e00\u4e2a\u5ba2\u6237\u53cd\u9988\u8bf4\u59cb\u7ec8\u8f7d\u5165\u4e0d\u5230\u5185\u5bb9\u3002<\/p>\n<p>\u6211\u4eec\u7528\u8be5\u7528\u6237\u7684 ID \u6d4b\u8bd5\u63a5\u53e3\u4e00\u5207\u90fd\u6b63\u5e38\uff0c\u4f46\u5ba2\u6237\u771f\u673a\u5c31\u662f\u4e0d\u884c\uff0c\u7136\u540e\u6211\u4eec\u628a\u5ba2\u6237\u52a0\u5230\u5f00\u53d1\u8005\u7136\u540e\u7528\u771f\u673a\u8c03\u8bd5\uff0c\u53d1\u73b0\u8bf7\u6c42\u6ca1\u95ee\u9898\uff0c\u4e5f\u5f97\u5230\u4e86\u4e86 303 \u7684\u72b6\u6001\u5e76\u4e14 Location \u4e5f\u8fd4\u56de\u4e86\u5bf9\u5e94\u7684\u5730\u5740\uff0c\u5730\u5740\u4e5f\u662f\u6b63\u5e38\u5e76\u4e14\u6709\u5185\u5bb9\u7684\u3002<\/p>\n<p>\u4e4b\u524d\u7528 301 \u56e0\u4e3a\u963f\u91cc\u4e91 OSS \u7684\u6587\u4ef6\u4e0d\u80fd\u7528 POST \u8bf7\u6c42\uff0c\u5426\u5219\u4f1a 405 MethodNotAllowed\uff0c\u6240\u4ee5\u6539\u6210\u4e86\u7528 303\uff0c\u5f3a\u5236 GET \u5230\u90a3\u8fb9\u53bb\u3002<\/p>\n<p>\u4f46\u662f\u534e\u4e3a\u624b\u673a\u83b7\u53d6\u5230 303 \u4e4b\u540e\u5c31\u629b\u4e2a Error\uff0c\u7136\u540e\u5c31\u6ca1\u7136\u540e\u4e86\u3002<\/p>\n<p>\u76ee\u524d\u7528\u6237\u7d2f\u8ba1\u4e00\u767e\u591a\u4e2a\u624b\u673a\u578b\u53f7\uff0c\u552f\u72ec\u534e\u4e3a\u6709\u8fd9\u4e2a\u95ee\u9898\uff0c\u8bf7\u95ee\u8fd9\u4e2a\u9505\u8c01\u80cc\uff1f<\/p>\n<p>\u624b\u673a\u578b\u53f7\uff1aHUAWEI Mate 20 Pro \uff08 LYA-L29 \uff09<br \/>\u7cfb\u7edf\u7248\u672c\uff1a10.0.0.198<br \/>\u5fae\u4fe1\u7248\u672c\uff1a7.0.13<br \/>\u5c0f\u7a0b\u5e8f\u57fa\u7840\u5e93\u7248\u672c\uff1a2.10.4      <\/div>\n<div> <b>\u5927\u4f6c\u6709\u8a71\u8aaa<\/b> (<span>9<\/span>)        <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<ul>\n<li data-pid=\"1198785\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : minami <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u4f17\u6240\u5468\u77e5 EMUI \u5df2\u7ecf\u628a\u5b89\u5353\u5e95\u5c42\u638f\u7a7a\u4e86\uff0c\u5230\u65f6\u5019\u62bd\u6389\u6846\u67b6\u5c31\u662f homo \u7cfb\u7edf\u3002\u6240\u4ee5\u5f53\u7136\u662f\u5f00\u53d1\u8005\u9002\u914d\u4e0d\u529b\u7684\u9505\u4e86\uff0c\u534e\u4e3a\u53ea\u662f\u201c\u517c\u5bb9\u5b89\u5353\u201d\u800c\u5df2                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"1198786\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : mogutouer <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u4e07\u4e07\u6ca1\u60f3\u5230\uff0c2020 \u5e74\u4e86\uff0cHTTP \u5e95\u5c42\u7684 3XX \u4ee3\u7801\u8fd8\u9700\u8981\u7a0b\u5e8f\u5458\u4e3b\u52a8\u5224\u65ad\u518d\u5904\u7406\uff0c\u9644 2014 \u5e74 RFC 7231 \u6807\u51c6 https:\/\/tools.ietf.org\/html\/rfc7231#section-6.4.2                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"1198787\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : Seanfuck <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u53c8\u4e00\u4e2a\u4e0d\u4e70\u534e\u4e3a\u7684\u7406\u7531[dog]                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"1198788\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : kokutou <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u505a\u4e2a workaround \u561b\u3002\u3002\u3002<\/p>\n<p>\u6ca1\u6709\u4e13\u95e8\u7684 workaround \u7a81\u51fb\u5c0f\u961f\u561b\uff1f                                                            <\/p><\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"1198789\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : zsj950618 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u6211\u611f\u89c9\u4f60\u8fd9\u7528\u6cd5\u6709\u70b9\u95ee\u9898\uff0c<\/p>\n<p>\u770b 303 \u5b9a\u4e49<\/p>\n<p>The response to the request can be found under another URI using the GET method. When received in response to a POST (or PUT\/DELETE), the client should presume that the server has received the data and should issue a new GET request to the given URI.[24]<\/p>\n<p>\u4f60\u662f POST \u5230\u4e00\u4e2a url\uff0c\u7136\u540e server \u8fd4\u56de\u4e86 303 \u5230\u963f\u91cc OSS \uff1f\u603b\u611f\u89c9\u4e0d\u662f\u5f88\u5bf9\u3002                                                            <\/p><\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"1198790\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : mogutouer <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @zsj950618 #5 \u5bf9\u554a\uff0c\u6211\u539f\u672c\u662f 301\uff0c\u4f46\u90e8\u5206\u624b\u673a\u4f1a\u628a POST \u8bf7\u6c42\u4e5f\u4e22\u7ed9 OSS\uff0c\u56e0\u4e3a OSS \u63a5\u53d7\u4e0d\u4e86 POST \u8bf7\u6c42\uff0c\u53ea\u6709\u4e0a\u4f20\u6587\u4ef6\u7684\u65f6\u5019\u53ef\u4ee5 POST\uff0c\u6240\u4ee5 OSS \u90a3\u8fb9\u4f1a\u8fd4\u56de 405 \u3002<\/p>\n<p>\u7136\u540e\u67e5\u8d44\u6599\u53d1\u73b0 303 \u662f\u628a\u65e0\u8bba\u4ec0\u4e48\u8bf7\u6c42\u6700\u540e\u90fd\u53d8\u6210 GET \u8bf7\u6c42\u5230\u76ee\u6807\u5730\u5740\uff0c\u6b63\u597d\u7b26\u5408 OSS \u7684\u89c4\u5219\uff0c\u6240\u4ee5\u5c31\u7528 303 \u4e86\u3002<\/p>\n<p>\u6ca1\u95ee\u9898\u7684\uff0c\u6211 POST userid \u7ed9\u540e\u7aef\uff0c\u540e\u7aef\u89e3\u6790\u4e86\u4e4b\u540e\u8ba9\u5ba2\u6237\u7aef\u53bb GET \u4e00\u4e2a\u9759\u6001 json \u6587\u4ef6\uff0c\u6ca1\u6bdb\u75c5\u7684\uff0c\u6211\u8981\u7684\u4e5f\u662f GET \u3002<\/p>\n<p>\u5982\u679c\u662f POST \u8f6c POST \u9700\u8981\u91cd\u65b0\u53d1\u9001\u8d44\u6599\uff0c\u5c31\u8981\u7528 307 \u6216 308                                                            <\/p><\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"1198791\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : mogutouer <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             303 \u7684\u6587\u5b57\u63cf\u8ff0\u662f See Other<\/p>\n<p>\u672c\u6765\u662f\u610f\u601d\u662f\u7528\u5728\u6bd4\u5982\u4f60\u63d0\u4ea4\u4e86\u8868\u5355\u4e86\uff0c\u670d\u52a1\u5668\u5224\u65ad\u4e86\uff0c\u7136\u540e\u8ba9\u4f60\u53bb\u4e00\u4e2a\u7ed3\u679c\u9875\uff0c\u90a3\u4e48\u8fd9\u4e2a\u7ed3\u679c\u9875\u5f53\u7136\u4e0d\u9700\u8981\u518d\u53d1\u9001\u6216\u63a5\u6536\u6570\u636e\uff0c\u53ea\u662f\u8ba9\u4f60\u770b\u7ed3\u679c\uff0c\u6b63\u6240\u8c13\u7684 See Other\uff0c\u5c31\u662f GET \u8fc7\u53bb\u770b\u3002<\/p>\n<p>\u56e0\u4e3a\u4e4b\u524d\u7684 301 302 \u6709\u70b9\u6df7\u4e71\uff0c\u540e\u6765\u53c8\u641e\u4e86\u6e05\u6670\u7684 303 307 308 \u8fd9\u4e9b                                                            <\/p><\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"1198792\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : zsj950618 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @mogutouer \u597d\u5427\uff0c\u7528\u6cd5\u770b\u6765\u662f\u5bf9\u7684\u3002<\/p>\n<p>\u4f46\u662f\u4f17\u6240\u5468\u77e5\uff0c\u5fae\u4fe1\u4e0d\u7528\u7cfb\u7edf webview \u7684\uff0c\u5927\u6982\u7387\u8fd8\u662f\u5fae\u4fe1\u7684\u9505\u3002                                                            <\/p><\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"1198793\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : locoz <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @zsj950618 #8 \u4e3b\u8d34\u4e2d\u63d0\u5230\u4e86\u201c\u76ee\u524d\u7528\u6237\u7d2f\u79ef\u4e00\u767e\u591a\u4e2a\u624b\u673a\u578b\u53f7\uff0c\u552f\u72ec\u534e\u4e3a\u6709\u8fd9\u4e2a\u95ee\u9898\u201d                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li>\n","protected":false},"excerpt":{"rendered":"<p>\u534e\u4e3a\u624b\u673a\u4e0d\u8ba4 HTTP 303 \u8cc7&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[],"tags":[],"_links":{"self":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/94252"}],"collection":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=94252"}],"version-history":[{"count":0,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/94252\/revisions"}],"wp:attachment":[{"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=94252"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=94252"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=94252"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}