{"id":1737,"date":"2017-08-07T15:48:29","date_gmt":"2017-08-07T07:48:29","guid":{"rendered":"http:\/\/www.xttblog.com\/?p=1737"},"modified":"2017-08-07T15:48:29","modified_gmt":"2017-08-07T07:48:29","slug":"get-%e8%af%b7%e6%b1%82%e8%83%bd%e5%8c%85%e5%90%ab-body-%e5%90%97%ef%bc%9f","status":"publish","type":"post","link":"https:\/\/www.xttblog.com\/?p=1737","title":{"rendered":"GET \u8bf7\u6c42\u80fd\u5305\u542b body \u5417\uff1f"},"content":{"rendered":"<p>\n\t\u6700\u8fd1\u5728stackoverflow\u4e0a\u770b\u5230\u4e86\u4e00\u7bc7\u5173\u4e8e&ldquo;<a href=\"https:\/\/stackoverflow.com\/questions\/978061\/http-get-with-request-body\" name=\"HTTP GET with request body\" target=\"_blank\" title=\"HTTP GET with request body\">GET \u8bf7\u6c42\u80fd\u5305\u542b body \u5417\uff1f<\/a> &rdquo;\u7684\u6587\u7ae0\uff0c\u611f\u89c9\u89e3\u91ca\u7684\u633a\u597d\u7684\uff0c\u56e0\u6b64\u7ffb\u8bd1\u4e86\u6b64\u6587\u3002\n<\/p>\n<p>\n\tGET \u8bf7\u6c42\u80fd\u5305\u542b body \u5417\uff1f\n<\/p>\n<p>\n\t\u56de\u7b54\u662f\u53ef\u4ee5\uff0c\u4f46\u6700\u597d\u4e0d\u8981\u8fd9\u4e48\u505a\u3002\u6807\u51c6\u6ca1\u6709\u7981\u6b62\uff0c\u4f46\u4e5f\u6ca1\u6709\u5b9a\u4e49\u8bed\u4e49\u3002\u5c31\u7b97\u670d\u52a1\u5668\u4e0d\u4f1a\u5ffd\u7565 GET \u8bf7\u6c42\u7684body\uff0c\u5404\u79cd\u4ee3\u7406\u548c\u7f13\u5b58\u53ef\u80fd\u4e5f\u4f1a\u8fc7\u6ee4body\u3002\n<\/p>\n<p>\n\t\u5728GET\u8bf7\u6c42\u4e2d\u6dfb\u52a0body\u5185\u5bb9\uff0c\u5728http1.1\u534f\u8bae\u4e2d\u6ca1\u6709\u88ab\u660e\u786e\u7981\u6b62\u3002\u5927\u5bb6\u53ef\u4ee5\u770b\u770bhttp1.1\u534f\u8bae\u7684\u76f8\u5173\u5185\u5bb9\uff1a<a href=\"https:\/\/tools.ietf.org\/html\/rfc2616\" name=\"Hypertext Transfer Protocol -- HTTP\/1.1\" target=\"_blank\" title=\"Hypertext Transfer Protocol -- HTTP\/1.1\">https:\/\/tools.ietf.org\/html\/rfc2616<\/a>\n<\/p>\n<p>\n\t\u5728\u4f17\u591a\u7b54\u6848\u4e2d\uff0c\u7f51\u9875\u4e5f\u53cd\u9988\u8bf4\u8fd9\u6837\u505a\u662f\u6ca1\u6709\u4efb\u4f55\u610f\u4e49\u7684\u3002\u800c\u4e14http1.1\u534f\u8bae\u7684\u7b2c4.3\u8282\u4e2d\u660e\u786e\u8bf4\u660e\uff1a\u5982\u679c\u8bf7\u6c42\u65b9\u6cd5\u4e0d\u5305\u62ec\u5b9e\u4f53\u4f53\u7684\u5b9a\u4e49\u8bed\u4e49\uff0c\u5219\u5904\u7406\u8bf7\u6c42\u65f6\u6d88\u606f\u4f53\u5e94\u8be5\u88ab\u5ffd\u7565\u3002\n<\/p>\n<p>\n\t\u6700\u540e\u6211\u5efa\u8bae\u5404\u4f4d\u7f51\u9875\u6700\u597d\u4e5f\u4e0d\u597d\u8fd9\u6837\u505a\uff01\u56e0\u4e3a\u5728\u5b9e\u9645\u751f\u4ea7\u4e2d\uff0c\u53ef\u4ee5\u56de\u9047\u5230\u5404\u79cd\u5947\u8469\u95ee\u9898\u3002<\/p>\n<!-- <audio autoplay=\"autoplay\" height=\"100\" width=\"100\" hidden=\"true\"><source src=\"https:\/\/c.coka.la\/orAvPR.mp3\" type=\"audio\/mp3\"\/><\/audio><img decoding=\"async\" src=\"https:\/\/images.weserv.nl\/?url=https:\/\/ws3.sinaimg.cn\/large\/8fa5dcfcgy1g4em3rzar5j20ib089ae0.jpg\" alt=\"\u4e1a\u4f59\u8349\u516c\u4f17\u53f7\"\/> --><p><!-- <img decoding=\"async\" src=\"https:\/\/raw.githubusercontent.com\/xmt1139057136\/xttblog\/master\/8fa5dcfcgy1g4em3rzar5j20ib089ae0.jpg\" alt=\"\u4e1a\u4f59\u8349\u516c\u4f17\u53f7\"\/>--><img decoding=\"async\" src=\"https:\/\/saas.51autoparts.cn\/api\/admin\/sys-file\/oss\/file?fileName=84db51f8561e448f9a4fda2eff0811f9.jpg\" alt=\"\u4e1a\u4f59\u8349\u516c\u4f17\u53f7\"\/><\/p><p>\u6700\u540e\uff0c\u6b22\u8fce\u5173\u6ce8\u6211\u7684\u4e2a\u4eba\u5fae\u4fe1\u516c\u4f17\u53f7\uff1a\u4e1a\u4f59\u8349\uff08yyucao\uff09\uff01<b>\u53ef\u52a0\u4f5c\u8005\u5fae\u4fe1\u53f7\uff1a<font color=\"red\">xttblog2<\/font>\u3002\u5907\u6ce8\uff1a\u201c1\u201d\uff0c\u6dfb\u52a0\u535a\u4e3b\u5fae\u4fe1\u62c9\u4f60\u8fdb\u5fae\u4fe1\u7fa4\u3002\u5907\u6ce8\u9519\u8bef\u4e0d\u4f1a\u540c\u610f\u597d\u53cb\u7533\u8bf7\u3002<\/b>\u518d\u6b21\u611f\u8c22\u60a8\u7684\u5173\u6ce8\uff01\u540e\u7eed\u6709\u7cbe\u5f69\u5185\u5bb9\u4f1a\u7b2c\u4e00\u65f6\u95f4\u53d1\u7ed9\u60a8\uff01\u539f\u521b\u6587\u7ae0\u6295\u7a3f\u8bf7\u53d1\u9001\u81f3532009913@qq.com\u90ae\u7bb1\u3002\u5546\u52a1\u5408\u4f5c\u4e5f\u53ef\u6dfb\u52a0\u4f5c\u8005\u5fae\u4fe1\u8fdb\u884c\u8054\u7cfb\uff01<\/p><p>\u672c\u6587\u539f\u6587\u51fa\u5904\uff1a<a href=\"https:\/\/www.xttblog.com\">\u4e1a\u4f59\u8349<\/a>\uff1a &raquo; <a href=\"https:\/\/www.xttblog.com\/?p=1737\">GET \u8bf7\u6c42\u80fd\u5305\u542b body \u5417\uff1f<\/a><\/p><!-- <div class=\"bd-reward-stl\"><button id=\"bdRewardBtn\"><span><\/span><\/button><\/div> -->","protected":false},"excerpt":{"rendered":"<p>\u6700\u8fd1\u5728stackoverflow\u4e0a\u770b\u5230\u4e86\u4e00\u7bc7\u5173\u4e8e&ldquo;GET \u8bf7\u6c42\u80fd\u5305\u542b body \u5417\uff1f &#038;rdquo [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4,5,6],"tags":[124],"class_list":["post-1737","post","type-post","status-publish","format-standard","hentry","category-html5","category-java","category-yyzt","tag-http"],"_links":{"self":[{"href":"https:\/\/www.xttblog.com\/index.php?rest_route=\/wp\/v2\/posts\/1737","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.xttblog.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.xttblog.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.xttblog.com\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.xttblog.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1737"}],"version-history":[{"count":1,"href":"https:\/\/www.xttblog.com\/index.php?rest_route=\/wp\/v2\/posts\/1737\/revisions"}],"predecessor-version":[{"id":1738,"href":"https:\/\/www.xttblog.com\/index.php?rest_route=\/wp\/v2\/posts\/1737\/revisions\/1738"}],"wp:attachment":[{"href":"https:\/\/www.xttblog.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1737"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.xttblog.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1737"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.xttblog.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1737"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}