Search code examples
httpposthttpsgetat-command

AT commands for HTTPS


I've been working with a SIM808 and sending HTTP GET requests using the following AT commands:

"AT+HTTPPARA=\"CID\", 1\r\n"
"AT+HTTPINIT\r\n"
"AT+HTTPPARA=\"URL\",\"http://www.example.com/\"\r\n"
"AT+HTTPACTION=0\r\n"
"AT+HTTPREAD\r\n"

and it works fine . But when I replace the URL with https, I only receive "OK"

My question is if there is a way to use AT commands for HTTPS request methods (using SSL).


Solution

  • The answer is to execute AT+HTTPSSL=1 after setting the URL. Hope this helps someone