Hello,
I’m working with AT commands. I’ve read related topics about custom https header request on this forum:
Since I cannot utilize AT+QHTTPGET=30 (it throws an error), I’ve tried using custom header format. However, I’m getting “https socket closed” error when I try to make a get request as instructed. Here is what I did:
(I’m sending another </CR/> manually at the end of the command sequence to match the instruction length of 164 bytes in total.)
Then I’ve tried another url to make a get request without customizing the header and it returns me the desired result:
input: https://doctorapp-b8180.firebaseio.com/app.json AT+QHTTPGET=30
get output:
{
"-MqIbplgIqbpKO0PNZBO": {
"name": "facebook"
},
"-MqIpnGbpyXKaw483LTM": {
"namedddddddddddddddddddddd": "facebook"
}
}
Next I’ve tried customizing the header for this link in particular, too. Whenever I use custom header format, it returns HTTP socket closed error (Cme 3818). I’ve double checked my custom header content to make sure host, username etc. were all appropriately set. Yet, it returns this error after a minute.
Any suggestions on how to get data from these links using custom or other methods?
I would like to learn how AT+QHTTPGET=30 works and what request is being sent during query if possbile.
Saved log:
[2023-10-10_14:08:29:215]AT+QHTTPURL=74
[2023-10-10_14:08:29:231]CONNECT
[2023-10-10_14:08:29:727]
[2023-10-10_14:08:29:727]OK
[2023-10-10_14:08:30:222]AT+QHTTPGET=150,164,60
[2023-10-10_14:09:34:127]+CME ERROR: 3818
Thanks in advance
Yusuf