Geetha
July 17, 2023, 7:16am
1
I am making an HTTP connection to a client to post the data and to get the response.
I am getting an ERROR message without any error code after giving AT+QHTTPGET=80.
And there is no issue with url.
AT+QHTTPCFG=“contextid”,1
[12:37:57:545] OK
[12:38:00:684] AT+QHTTPCFG=“requestheader”,1
[12:38:00:684] OK
[12:38:10:921] AT+QHTTPCFG=“requestheader”,1
[12:38:10:921] OK
[12:38:23:488] AT+QHTTPURL=34,80
[12:38:23:488] CONNECT␍␊
[12:38:26:640]
[12:38:26:640] OK
[12:38:31:311] AT+QHTTPPOST=34,80,80
[12:38:31:311] CONNECT
[12:38:33:728] api_key=<api_key>&field1=5
[12:38:33:728] OK
[12:38:36:459] AT+QHTTPGET=80
[12:38:36:459] ERROR
Thanks in advance
Can you provide your URL and unhidden log? I need to repeat your question
Geetha
July 18, 2023, 5:08am
3
I think it has something to do with your custom request header, have you tested other urls?
Geetha
July 18, 2023, 8:14am
5
I Have also tried the link as below
AT+QHTTPCFG=“contextid”,1
[13:34:40:892] OK␍␊
[13:34:50:956] AT+QHTTPCFG=“responseheader”,1
[13:34:50:956] OK␍␊
[13:35:10:678] AT+QHTTPURL=53,80
[13:35:10:678] CONNECT␍␊
[13:35:11:972] http://user:passwd@httpbin.org/basic-auth/user/passwd
[13:35:11:972] OK␍␊
[13:35:24:711] AT+QHTTPGET=80
[13:35:24:711] OK␍␊
[13:42:31:114] AT+QHTTPREAD=80
[13:42:33:114] ERROR
Geetha
July 19, 2023, 6:50am
6
I am unable to get the response +QHTTPGET though I waited for a longer time but the response OK displayed.
Thanks in advance