{"id":2593,"date":"2012-11-09T13:08:03","date_gmt":"2012-11-09T21:08:03","guid":{"rendered":"http:\/\/m2msupport.net\/m2msupport\/?page_id=2593"},"modified":"2017-09-06T22:56:47","modified_gmt":"2017-09-07T05:56:47","slug":"athttpterm-terminate-the-http-session","status":"publish","type":"page","link":"https:\/\/m2msupport.net\/m2msupport\/athttpterm-terminate-the-http-session\/","title":{"rendered":"AT+HTTPTERM &#8211; Terminate the HTTP session"},"content":{"rendered":"<p>AT+HTTPTERM function is used terminate the HTTP ser 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+HTTPTERM function is used terminate the HTTP ser 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 bearer &hellip; <a href=\"https:\/\/m2msupport.net\/m2msupport\/athttpterm-terminate-the-http-session\/\">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-2593","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/m2msupport.net\/m2msupport\/wp-json\/wp\/v2\/pages\/2593","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=2593"}],"version-history":[{"count":4,"href":"https:\/\/m2msupport.net\/m2msupport\/wp-json\/wp\/v2\/pages\/2593\/revisions"}],"predecessor-version":[{"id":14546,"href":"https:\/\/m2msupport.net\/m2msupport\/wp-json\/wp\/v2\/pages\/2593\/revisions\/14546"}],"wp:attachment":[{"href":"https:\/\/m2msupport.net\/m2msupport\/wp-json\/wp\/v2\/media?parent=2593"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}