{"id":2586,"date":"2012-11-09T12:08:07","date_gmt":"2012-11-09T20:08:07","guid":{"rendered":"http:\/\/m2msupport.net\/m2msupport\/?page_id=2586"},"modified":"2017-09-06T22:53:00","modified_gmt":"2017-09-07T05:53:00","slug":"athttpaction-perform-getposthead-http-action","status":"publish","type":"page","link":"https:\/\/m2msupport.net\/m2msupport\/athttpaction-perform-getposthead-http-action\/","title":{"rendered":"AT+HTTPACTION &#8211; Perform Get\/Post\/Head HTTP action"},"content":{"rendered":"<p>AT+HTTPACTION AT command is used to either do a HTTP PUT or HTTP GET function on the Simcom modules.<br \/>\nWith <a href=\"http:\/\/m2msupport.net\/m2msupport\/download-at-command-tester-for-simcom-modules\/\">Online AT Command Tester<\/a> tool, you can test Simcom HTTP feature.<\/p>\n<p><a href=\"http:\/\/m2msupport.net\/m2msupport\/download-at-command-tester-for-simcom-modules\/\"><img decoding=\"async\" src=\"http:\/\/www.m2msupport.net\/m2msupport\/wp-content\/themes\/admired\/images\/sim_http1.PNG\" height=\"95%\" width=\"95%\"\/><\/a><\/p>\n<p>Send batch of AT commands in the script mode,<br \/>\n<code><br \/>\n\/\/Check the registration status<br \/>\nAT+CREG?<\/p>\n<p>\/\/Check whether bearer 1 is open.<br \/>\nAT+SAPBR=2,1<\/p>\n<p>\/\/Enable bearer 1<br \/>\nAT+SAPBR=1,1<\/p>\n<p>\/\/Wait untial bearer is activated<br \/>\nWAIT=6<\/p>\n<p>\/\/Initialize HTTP service<br \/>\nAT+HTTPINIT<\/p>\n<p>\/\/Set the HTTP URL<br \/>\nAT+HTTPPARA=\"URL\",\"http:\/\/www.m2msupport.net\/m2msupport\/http_get_test.php\"<\/p>\n<p>\/\/Set the context ID<br \/>\nAT+HTTPPARA=\"CID\",1<\/p>\n<p>\/\/Set up the HTTP action<br \/>\nAT+HTTPACTION=0<\/p>\n<p>\/\/Do a HTTP read<br \/>\nAT+HTTPREAD<\/p>\n<p>\/\/Wait for the HTTP response<br \/>\nWAIT=6<\/p>\n<p>\/\/Terminate the HTTP service<br \/>\nAT+HTTPTERM<br \/>\n<\/code><\/p>\n<p><a href=\"http:\/\/m2msupport.net\/m2msupport\/download-at-command-tester-for-simcom-modules\/\"><img decoding=\"async\" src=\"http:\/\/www.m2msupport.net\/m2msupport\/wp-content\/themes\/admired\/images\/sim_http2.PNG\" height=\"95%\" width=\"95%\"\/><\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>AT+HTTPACTION AT command is used to either do a HTTP PUT or HTTP GET function on the Simcom modules. With Online AT Command Tester tool, you can test Simcom HTTP feature. Send batch of AT commands in the script mode, &hellip; <a href=\"https:\/\/m2msupport.net\/m2msupport\/athttpaction-perform-getposthead-http-action\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"atcommands.php","meta":{"footnotes":""},"class_list":["post-2586","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/m2msupport.net\/m2msupport\/wp-json\/wp\/v2\/pages\/2586","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/m2msupport.net\/m2msupport\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/m2msupport.net\/m2msupport\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/m2msupport.net\/m2msupport\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/m2msupport.net\/m2msupport\/wp-json\/wp\/v2\/comments?post=2586"}],"version-history":[{"count":5,"href":"https:\/\/m2msupport.net\/m2msupport\/wp-json\/wp\/v2\/pages\/2586\/revisions"}],"predecessor-version":[{"id":14543,"href":"https:\/\/m2msupport.net\/m2msupport\/wp-json\/wp\/v2\/pages\/2586\/revisions\/14543"}],"wp:attachment":[{"href":"https:\/\/m2msupport.net\/m2msupport\/wp-json\/wp\/v2\/media?parent=2586"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}