Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- AT+CNACT=1,"apn" # your apn
- OK
- +APP PDP: ACTIVE
- AT+CNACT?
- +CNACT: 1,"10.xxx.xxx.xxx"
- OK
- AT+CSSLCFG="ignorertctime",1,1
- OK
- AT+CSSLCFG="sslversion",1,3
- OK
- AT+CSSLCFG="sni",1,"example.com" # configures server name indication for cloud servers
- OK
- AT+SHSSL=1,"" # ignores certificate validation
- OK
- AT+SHCONF="BODYLEN",1024 # maximum body size (send in bytes)
- OK
- AT+SHCONF="HEADERLEN",350 # max header size (send in bytes)
- OK
- AT+SHCONF="URL","https://example.com"
- OK
- AT+CCLK="24/11/16,00:04:58+00" # the current time
- OK
- AT+SHCONN # establish the connection to the server
- OK
- AT+SHAHEAD="Content-Type","text"
- OK
- AT+SHAHEAD="User-Agent","curl/7.47.0"
- OK
- AT+SHAHEAD="Cache-control","no-cache"
- OK
- AT+SHAHEAD="Accept","*/*"
- OK
- AT+SHBOD="your_body",9
- OK
- AT+SHREQ="/path/to/endpoint",3 # execute the request
- OK
- +SHREQ: "POST",200,2
- AT+SHREAD=0,2
- OK
- +SHREAD: 2
- OK
- AT+SHDISC
- OK
- AT+CNACT=0
- OK
- +APP PDP: DEACTIVE
- # reconfigure the ssl connection each time
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement