{"id":143958,"date":"2020-05-24T08:50:57","date_gmt":"2020-05-24T15:50:57","guid":{"rendered":"https:\/\/m2msupport.net\/m2msupport\/?page_id=143958"},"modified":"2020-05-24T08:51:50","modified_gmt":"2020-05-24T15:51:50","slug":"atshreq-set-up-http-request-type-in-the-simcom-modules","status":"publish","type":"page","link":"https:\/\/m2msupport.net\/m2msupport\/atshreq-set-up-http-request-type-in-the-simcom-modules\/","title":{"rendered":"AT+SHREQ -Set up HTTP request type in the Simcom modules"},"content":{"rendered":"\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/m2msupport.net\/m2msupport\/wp-content\/uploads\/2020\/05\/at_shreq.png\" alt=\"\" class=\"wp-image-32155\"\/><\/figure>\n\n\n<p>Try the below script in the <a href=\"https:\/\/m2msupport.net\/m2msupport\/download-at-command-tester-for-simcom-modules\/\">AT Command Tester tool<\/a>\n<\/p>\n<pre style=\"color: blue; background-color: white; border: 1px solid black;\">\/\/Script: at+shreq - Setup HTTP request type in Simcom modules\n\/\/The AT commands in this script are applicable for Simcom modules only\n\/\/Check SIMCOM Module AT Command documentation\n\n\/\/Get the support for the commands\nAT+SHREQ=?\n\n\/\/Wait\nWAIT=1\n\n\/\/Get the current request\nAT+SHREQ?\n\n\/\/Wait\nWAIT=1\n\n\/\/Activate the network bearer\nAT+CNACT=0,1\n\n\/\/Wait\nWAIT=1\n\n\/\/Set up the HTTP URL\nAT+SHCONF=\"URL\",\"http:\/\/www.yahoo.com\"\n\n\/\/Wait\nWAIT=1\n\n\/\/HTTP body length\nAT+SHCONF=\"BODYLEN\",1024\n\n\/\/HTTP head length\nAT+SHCONF=\"HEADERLEN\",350\n\n\/\/HTTP connection\nAT+SHCONN\n\n\/\/Wait\nWAIT=1\n\n\/\/Get the connection status\nAT+SHSTATE?\n\n\/\/Wait\nWAIT=1\n\n\/\/Make the HTTP request\n\/\/ 1- GET\n\/\/ 2 - PUT\n\/\/ 3 - POST\n\/\/4 - PATCH\n\/\/5 - HEAD\nAT+SHREQ=\"http:\/\/www.yahoo.com\",1\n\n<\/pre>\n<p>Output of the above script in the <a href=\"https:\/\/m2msupport.net\/m2msupport\/download-at-command-tester-for-simcom-modules\/\">AT Command Tester tool<\/a><\/p>\n<p><\/p>\n<pre style=\"color: blue; background-color: #ffffcc; border: 1px solid black;\">AT+SHREQ=?\n\n+SHREQ: 512,(1-5)\n\nOK\nAT+SHREQ?\n\n+SHREQ: ,0\n\nOK\nAT+CNACT=0,1\n\nOK\n\n+APP PDP: 0,ACTIVE\nAT+SHCONF=\"URL\",\"http:\/\/www.yahoo.com\"\n\nOK\nAT+SHCONF=\"BODYLEN\",1024\n\nOK\nAT+SHCONF=\"HEADERLEN\",350\n\nOK\nAT+SHCONN\n\nOK\nAT+SHSTATE?\n\n+SHSTATE: 1\n\nOK\nAT+SHREQ=\"http:\/\/www.yahoo.com\",1\n\nOK\n\n+SHREQ: \"GET\",301,8\n\n\n\n<\/pre>\n<div class=\"video-responsive\"><iframe loading=\"lazy\" id=\"youTubePlayer\" src=\"https:\/\/www.youtube.com\/embed\/1toEq4xtxXE\" width=\"750\" height=\"421\" frameborder=\"0\" allowfullscreen=\"allowfullscreen\"><\/iframe><\/div>","protected":false},"excerpt":{"rendered":"<p>Try the below script in the AT Command Tester tool \/\/Script: at+shreq &#8211; Setup HTTP request type in Simcom modules \/\/The AT commands in this script are applicable for Simcom modules only \/\/Check SIMCOM Module AT Command documentation \/\/Get the &hellip; <a href=\"https:\/\/m2msupport.net\/m2msupport\/atshreq-set-up-http-request-type-in-the-simcom-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":"atcommands.php","meta":{"footnotes":""},"class_list":["post-143958","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/m2msupport.net\/m2msupport\/wp-json\/wp\/v2\/pages\/143958","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=143958"}],"version-history":[{"count":1,"href":"https:\/\/m2msupport.net\/m2msupport\/wp-json\/wp\/v2\/pages\/143958\/revisions"}],"predecessor-version":[{"id":143960,"href":"https:\/\/m2msupport.net\/m2msupport\/wp-json\/wp\/v2\/pages\/143958\/revisions\/143960"}],"wp:attachment":[{"href":"https:\/\/m2msupport.net\/m2msupport\/wp-json\/wp\/v2\/media?parent=143958"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}