{"id":2577,"date":"2012-11-09T10:26:55","date_gmt":"2012-11-09T18:26:55","guid":{"rendered":"http:\/\/m2msupport.net\/m2msupport\/?page_id=2577"},"modified":"2017-09-06T22:53:37","modified_gmt":"2017-09-07T05:53:37","slug":"athttpinit-initialize-http-service","status":"publish","type":"page","link":"https:\/\/m2msupport.net\/m2msupport\/athttpinit-initialize-http-service\/","title":{"rendered":"AT+HTTPINIT &#8211; Initialize HTTP Service"},"content":{"rendered":"<p>AT+HTTPINIT function is used to initialize the HTTP service for 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+HTTPINIT function is used to initialize the HTTP service for Simcom modules. With Online AT Command Tester tool, you can test Simcom HTTP feature. Send batch of AT commands in the script mode, \/\/Check the registration status AT+CREG? \/\/Check whether &hellip; <a href=\"https:\/\/m2msupport.net\/m2msupport\/athttpinit-initialize-http-service\/\">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-2577","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/m2msupport.net\/m2msupport\/wp-json\/wp\/v2\/pages\/2577","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=2577"}],"version-history":[{"count":4,"href":"https:\/\/m2msupport.net\/m2msupport\/wp-json\/wp\/v2\/pages\/2577\/revisions"}],"predecessor-version":[{"id":14544,"href":"https:\/\/m2msupport.net\/m2msupport\/wp-json\/wp\/v2\/pages\/2577\/revisions\/14544"}],"wp:attachment":[{"href":"https:\/\/m2msupport.net\/m2msupport\/wp-json\/wp\/v2\/media?parent=2577"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}