PN 1001933 rev 2
© NimbeLink Corp. 2022. All rights reserved.
24
5.2 HTTP POST Example
After properly initializing the modem in
, enter the commands below to
execute an HTTP POST request. For help with POST command formatting, refer to the
next page.
Note:
the text in red indicates CTRL key sequences, and are not to be typed into the
terminal verbatim. Instead, press these CTRL key sequences in the order listed. Bold
text indicates commands, as well as text that was pasted into the terminal.
AT+QSSLSEND=1
>
POST /things/AWS_TEST_THING/shadow HTTP/1.1
"CTRL+M, CTRL+J"
Host: a272y7s3bxum89.iot.us-east-2.amazonaws.com:8443
"CTRL+M, CTRL+J"
Content-Type: application/json
"CTRL+M, CTRL+J"
Content-Length: 115
"CTRL+M, CTRL+J, CTRL+M, CTRL+J"
{"state":{"desired":{"string1":"TLS Connect to AWS","string2":"Using the built-
in stack","string3":"of the BG96"}}}
"CTRL-Z"
SEND OK
+QSSLURC: "recv",1
AT+QSSLRECV=1
+QSSLRECV: 470
HTTP/1.1 200 OK
content-type: application/json
content-length: 281
date: Mon, 23 Jul 2018 22:53:03 GMT
x-amzn-RequestId: c89a85c0-4154-e2fd-63da-dd538aaa0459
connection: keep-alive
{"state":{"desired":{"string1":"TLS Connect to AWS","string2":"Using the built-
in stack","string3":"of the
BG96"}},"metadata":{"desired":{"string1":{"timestamp":1532386383},"string2":{"t
imestamp":1532386383},"string3":{"timestamp":1532386383}}},"version":18,"timest
amp":1532386383}
OK