{"id":2590,"date":"2012-11-09T12:58:43","date_gmt":"2012-11-09T20:58:43","guid":{"rendered":"http:\/\/m2msupport.net\/m2msupport\/?page_id=2590"},"modified":"2017-09-06T22:54:32","modified_gmt":"2017-09-07T05:54:32","slug":"athttpread-get-response-from-http-server","status":"publish","type":"page","link":"https:\/\/m2msupport.net\/m2msupport\/athttpread-get-response-from-http-server\/","title":{"rendered":"AT+HTTPREAD &#8211; Get response from HTTP server"},"content":{"rendered":"<p>AT+HTTPREAD function is used to read the response from the remote HTTP server.The start address and the length of data to be read is provided as input to AT+HTTPREAD command.<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+HTTPREAD function is used to read the response from the remote HTTP server.The start address and the length of data to be read is provided as input to AT+HTTPREAD command. With Online AT Command Tester tool, you can test Simcom &hellip; <a href=\"https:\/\/m2msupport.net\/m2msupport\/athttpread-get-response-from-http-server\/\">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-2590","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/m2msupport.net\/m2msupport\/wp-json\/wp\/v2\/pages\/2590","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=2590"}],"version-history":[{"count":4,"href":"https:\/\/m2msupport.net\/m2msupport\/wp-json\/wp\/v2\/pages\/2590\/revisions"}],"predecessor-version":[{"id":14545,"href":"https:\/\/m2msupport.net\/m2msupport\/wp-json\/wp\/v2\/pages\/2590\/revisions\/14545"}],"wp:attachment":[{"href":"https:\/\/m2msupport.net\/m2msupport\/wp-json\/wp\/v2\/media?parent=2590"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}