{"id":21319,"date":"2019-03-13T22:18:03","date_gmt":"2019-03-14T05:18:03","guid":{"rendered":"https:\/\/m2msupport.net\/m2msupport\/?page_id=21319"},"modified":"2019-03-14T22:27:09","modified_gmt":"2019-03-15T05:27:09","slug":"http-testing-with-simcom-sim7000-and-sim800-modules","status":"publish","type":"page","link":"https:\/\/m2msupport.net\/m2msupport\/http-testing-with-simcom-sim7000-and-sim800-modules\/","title":{"rendered":"HTTP testing with Simcom SIM7000 and SIM800 Modules"},"content":{"rendered":"<h3>Steps to test HTTP with SIM7000 and SIM800 Modules<\/h3>\n<ul>\n<li>Verify that the device is registered with the network provider<\/li>\n<li>Assign the APN to one of the bearer profiles<\/li>\n<li>Initialize the HTTP connection using the AT+HTTPINIT command<\/li>\n<li>Setup the HTTP URL and CID parameters using the AT+HTTPPARA command<\/li>\n<li>Specify the GET action using AT+HTTPACTION=0 command<\/li>\n<li>Get the response from the remote server using the AT+HTTPREAD command<\/li>\n<li>Terminate the HTTP connection using the AT+HTTPTERM command.<\/li>\n<\/ul>\n<p><a href=\"https:\/\/m2msupport.net\/m2msupport\/download-at-command-tester-for-simcom-modules\/\">AT Command Tester<\/a> Tool provides an easy interface to test HTTP GET with Simcom modules. After configuring the APN, simply press the &#8216;HTTP GET&#8217; button. You can change the HTTP GET URL if you prefer.<\/p>\n<p><a href=\"https:\/\/m2msupport.net\/m2msupport\/wp-content\/uploads\/2019\/01\/sim7000a_http_get.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-19422\" src=\"https:\/\/m2msupport.net\/m2msupport\/wp-content\/uploads\/2019\/01\/sim7000a_http_get.png\" alt=\"\" width=\"864\" height=\"791\" srcset=\"https:\/\/m2msupport.net\/m2msupport\/wp-content\/uploads\/2019\/01\/sim7000a_http_get.png 864w, https:\/\/m2msupport.net\/m2msupport\/wp-content\/uploads\/2019\/01\/sim7000a_http_get-300x275.png 300w, https:\/\/m2msupport.net\/m2msupport\/wp-content\/uploads\/2019\/01\/sim7000a_http_get-768x703.png 768w, https:\/\/m2msupport.net\/m2msupport\/wp-content\/uploads\/2019\/01\/sim7000a_http_get-600x549.png 600w\" sizes=\"auto, (max-width: 864px) 100vw, 864px\" \/><\/a><\/p>\n<p>For HTTP post with SIM7000 and SIM800 modules,<\/p>\n<ul>\n<li>Send the post data using AT+HTTPDATA command<\/li>\n<li>Specify the GET action using AT+HTTPACTION=1 command<\/li>\n<\/ul>\n<p>In the&nbsp;<a href=\"https:\/\/m2msupport.net\/m2msupport\/download-at-command-tester-for-simcom-modules\/\">AT Command Tester<\/a>&nbsp;tool, press the &#8216;HTTP POST&#8217; button, the tool will send the required AT commands to the device to complete the HTTP POST action.<\/p>\n<p><a href=\"https:\/\/m2msupport.net\/m2msupport\/wp-content\/uploads\/2019\/01\/sim7000a_http_post.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-19423\" src=\"https:\/\/m2msupport.net\/m2msupport\/wp-content\/uploads\/2019\/01\/sim7000a_http_post.png\" alt=\"\" width=\"863\" height=\"789\" srcset=\"https:\/\/m2msupport.net\/m2msupport\/wp-content\/uploads\/2019\/01\/sim7000a_http_post.png 863w, https:\/\/m2msupport.net\/m2msupport\/wp-content\/uploads\/2019\/01\/sim7000a_http_post-300x274.png 300w, https:\/\/m2msupport.net\/m2msupport\/wp-content\/uploads\/2019\/01\/sim7000a_http_post-768x702.png 768w, https:\/\/m2msupport.net\/m2msupport\/wp-content\/uploads\/2019\/01\/sim7000a_http_post-600x549.png 600w\" sizes=\"auto, (max-width: 863px) 100vw, 863px\" \/><\/a><\/p>\n<h3><strong>Test HTTP GET in script mode<\/strong><\/h3>\n<p>HTTP GET feature can also be tested using a script in the&nbsp;<a href=\"https:\/\/m2msupport.net\/m2msupport\/download-at-command-tester-for-simcom-modules\/\">AT Command Tester.<\/a><\/p>\n<pre style=\"background-color: white; border: 1px solid black;\">\/\/Script: simcom_http_get_7000x_800x.at\n\/\/Use this script to test HTTP GET AT command with Simcom modules.\n\/\/This script can be used on following Simcom modules-\n\/\/SIM7000X, SIM800X\n\n\/\/Initialize the HTTP Connection\nAT+HTTPINIT\n\nWAIT=2\n\n\/\/Set the HTTP URL\nAT+HTTPPARA=\"URL\",\"http:\/\/httpbin.org\/get\"\n\n<code>WAIT=1\n\n\/\/Specify the connection ID\n\/\/Verify that the connection ID has the APN configured\nAT+HTTPPARA=\"CID\",1\n\nWAIT=1\n\n\/\/Set the action to HTTP GET\nAT+HTTPACTION=0\n\nWAIT=5\n<\/code><\/pre>\n<p>Response to the HTTP GET script in the&nbsp;<a href=\"https:\/\/m2msupport.net\/m2msupport\/download-at-command-tester-for-simcom-modules\/\">AT Command Tester<\/a>.<\/p>\n<pre style=\"color: blue; background-color: #ffffcc; border: 1px solid black;\">AT+HTTPINIT\nOK\nAT+HTTPPARA=\"URL\",\"http:\/\/httpbin.org\/get\"\nOK\nAT+HTTPPARA=\"CID\",1\nOK\nAT+HTTPACTION=0\nOK\n\nHTTP GET is successful\n\nAT+HTTPREAD\n+HTTPREAD: 202\n{\n\"args\": {},\n\"headers\": {\n\"Accept\": \"*\/*\",\n\"Host\": \"httpbin.org\",\n\"User-Agent\": \"SIMCOM_MODULE\"\n},\n\"origin\": \"52.59.96.142, 52.59.96.142\",\n\"url\": \"https:\/\/httpbin.org\/get\"\n}\n\nOK\nAT+HTTPTERM\nOK\n<\/pre>\n<div class=\"video-responsive\"><iframe loading=\"lazy\" src=\"https:\/\/www.youtube.com\/embed\/m9TvJJp9Vbw\" width=\"560\" height=\"315\" frameborder=\"0\" allowfullscreen=\"allowfullscreen\"><\/iframe><\/div>\n<p><code><br \/>\n<\/code><\/p>\n<div class=\"video-responsive\"><iframe loading=\"lazy\" src=\"https:\/\/www.youtube.com\/embed\/-l7Gh2VIpIE\" width=\"560\" height=\"315\" frameborder=\"0\" allowfullscreen=\"allowfullscreen\"><\/iframe><\/div>\n<p><code><br \/>\n<\/code><code><\/code><code><\/code><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Steps to test HTTP with SIM7000 and SIM800 Modules Verify that the device is registered with the network provider Assign the APN to one of the bearer profiles Initialize the HTTP connection using the AT+HTTPINIT command Setup the HTTP URL &hellip; <a href=\"https:\/\/m2msupport.net\/m2msupport\/http-testing-with-simcom-sim7000-and-sim800-modules\/\">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":"software_howto.php","meta":{"footnotes":""},"class_list":["post-21319","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/m2msupport.net\/m2msupport\/wp-json\/wp\/v2\/pages\/21319","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=21319"}],"version-history":[{"count":29,"href":"https:\/\/m2msupport.net\/m2msupport\/wp-json\/wp\/v2\/pages\/21319\/revisions"}],"predecessor-version":[{"id":21443,"href":"https:\/\/m2msupport.net\/m2msupport\/wp-json\/wp\/v2\/pages\/21319\/revisions\/21443"}],"wp:attachment":[{"href":"https:\/\/m2msupport.net\/m2msupport\/wp-json\/wp\/v2\/media?parent=21319"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}