{"id":73,"date":"2011-05-23T19:40:40","date_gmt":"2011-05-24T00:40:40","guid":{"rendered":"http:\/\/themayesfamily.com\/blogs\/b\/?p=73"},"modified":"2011-05-23T19:40:40","modified_gmt":"2011-05-24T00:40:40","slug":"rest-client-for-firefox-sample-post-request","status":"publish","type":"post","link":"https:\/\/themayesfamily.com\/blogs\/b\/2011\/05\/23\/rest-client-for-firefox-sample-post-request\/","title":{"rendered":"Rest Client for Firefox &#8211; Sample POST Request"},"content":{"rendered":"<p>I was having fits getting the <a href=\"https:\/\/addons.mozilla.org\/en-US\/firefox\/addon\/restclient\/\">REST Client<\/a> for Firefox to let me create a post body where PHP would recognize the parameters I was trying to post.  I added them to the &#8220;request body&#8221; but my REST server wasn&#8217;t showing that I was even posting anything.<\/p>\n<p>I found out that you have to set the &#8220;request header&#8221; section of the Firefox plugin to have a &#8220;name&#8221; = &#8220;Content-Type&#8221; and &#8220;value&#8221; = &#8220;application\/x-www-form-urlencoded&#8221;.  Then I was able to put something like &#8220;name=themayesfamily&#8221; in the &#8220;request body&#8221; and my server found a post variable with called &#8220;name&#8221; with the value I&#8217;d set.<\/p>\n<p>Hope this helps some others. <\/p>\n","protected":false},"excerpt":{"rendered":"<p>I was having fits getting the REST Client for Firefox to let me create a post body where PHP would recognize the parameters I was trying to post. I added them to the &#8220;request body&#8221; but my REST server wasn&#8217;t showing that I was even posting anything. I found out that you have to set &hellip; <a href=\"https:\/\/themayesfamily.com\/blogs\/b\/2011\/05\/23\/rest-client-for-firefox-sample-post-request\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Rest Client for Firefox &#8211; Sample POST Request&#8221;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[7],"tags":[22,30,39,41,43],"class_list":["post-73","post","type-post","status-publish","format-standard","hentry","category-programming","tag-body","tag-firefox","tag-php","tag-plugin","tag-post"],"_links":{"self":[{"href":"https:\/\/themayesfamily.com\/blogs\/b\/wp-json\/wp\/v2\/posts\/73","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/themayesfamily.com\/blogs\/b\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/themayesfamily.com\/blogs\/b\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/themayesfamily.com\/blogs\/b\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/themayesfamily.com\/blogs\/b\/wp-json\/wp\/v2\/comments?post=73"}],"version-history":[{"count":0,"href":"https:\/\/themayesfamily.com\/blogs\/b\/wp-json\/wp\/v2\/posts\/73\/revisions"}],"wp:attachment":[{"href":"https:\/\/themayesfamily.com\/blogs\/b\/wp-json\/wp\/v2\/media?parent=73"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/themayesfamily.com\/blogs\/b\/wp-json\/wp\/v2\/categories?post=73"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/themayesfamily.com\/blogs\/b\/wp-json\/wp\/v2\/tags?post=73"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}