EC800 cannot access HTTP

Hi everyone !!!

I’m using the EC800M-CN

When I try to send http request by using example_httpclient, this errors. And I don’t know what happen because I was check log all ql_http_client_setop(…), it notifies that all success. Even I comment the function set SSL, this still error.
May I can solve this problem?

Hi @Haaa
From the screenshot, it can be seen that the SSL certificate is not found. Please confirm whether the server needs to verify the certificate. If so, please upload the correct SSL certificate. If not, you can choose the no-certificate verification mode to try.

You can follow below steps for HTTPS post with the added headers.

AT

OK

ATE0

OK

AT+CPIN?

+CPIN: READY

OK

AT+CSQ

+CSQ: 25,99

OK

AT+CGDCONT=1,“IP”,“internet”

OK

AT+QIACT=1

OK

AT+QSSLCFG=“sslversion”,1,4

OK

AT+QSSLCFG=“sni”,1,1

OK

AT+QSSLCFG=“seclevel”,1,0

OK

AT+QHTTPCFG=“contextid”,1

OK

AT+QHTTPCFG=“sslctxid”,1

OK

AT+QHTTPCFG=“responseheader”,1

OK

AT+QHTTPCFG=“reqheader/add”,“Content-Type”,“application/json”

OK

AT+QHTTPCFG=“reqheader/add”,“X-Vendor-Auth-Key”,“example_1_1”

OK

AT+QHTTPCFG=“reqheader/add”,“X-Auther-Id”,“1”

OK

Setting up URL…

AT+QHTTPURL=74,80

CONNECT

https://dev.example.com/api/public/row

OK

json_data = ‘{“serial_no”:1234567890,“product_id”:1}’
Sending JSON data…

AT+QHTTPPOST=39,80,80

CONNECT

ser.write(json_data.encode())
ser.write(b’\x1A’)

OK
+QHTTPPOST: 0,200,3112

Reading response…

AT+QHTTPREAD=80

CONNECT
HTTP/1.1 200 OK
Date: Mon, 11 Aug 2025 06:42:11 GMT
Content-Type: application/json; charset=utf-8
Content-Length: 3112
Connection: keep-alive
Set-Cookie: ApplicationGatewayAffinityCORS=439b482wrq234a27b940f4dbd699087; Path=/; SameSite=None; Secure
Set-Cookie: ApplicationGatewayAffinity=439b482wrq234a27b940f4dbd699087; Path=/
ETag: “lkh564dxts45g”
Vary: Accept-Encoding

OK

+QHTTPREAD: 0

AT+QHTTPSTOP

OK

AT+QIDEACT=1

OK