Quantcast
Channel: Active questions tagged https - Stack Overflow
Viewing all articles
Browse latest Browse all 1854

Facing 400 Bad Request in EC200U HTTPS POST

$
0
0

I am using EC200U module to make an HTTPS POST request to my Flask server hosted on Render. The SSL configuration seems fine, but I always receive HTTP/1.1 400 Bad Request from the server.

Here are the AT commands I tried:

ATE1ATI+CPIN: READY+CREG: 0,5+CEREG: 0,5+CSQ: 12,99AT+QICSGP=1,1,"airtelgprs.com","","",1AT+QIACT=1AT+QIACT?+QIACT: 1,1,1,"100.92.77.245"AT+QPING=1,"weatherapp-d0io.onrender.com"AT+QHTTPCFG="sslctxid",1AT+QSSLCFG="sslversion",1,4AT+QSSLCFG="ciphersuite",1,0xffffAT+QSSLCFG="seclevel",1,0AT+QSSLCFG="sni",1,1AT+QHTTPCFG="contextid",1AT+QHTTPCFG="requestheader",1AT+QHTTPCFG="responseheader",1AT+QHTTPCFG="header","content-type:application/json"AT+QHTTPCFG="header","user-agent:quectel"AT+QHTTPCFG="header","accept:*/*"AT+QHTTPCFG="header","accept-encoding:gzip,deflate,br"AT+QHTTPCFG="header","connection:keep-alive"AT+QHTTPCFG="header","host:weatherapp-d0io.onrender.com"AT+QHTTPURL=48,120CONNECTOKAT+QHTTPPOST=85,120,120CONNECTOKAT+QHTTPREAD=80CONNECTHTTP/1.1 400 Bad RequestServer: cloudflare

No matter what I try, I only get 400 Bad Request.I tested the same API using Postman, and it works correctly — so the issue isn’t with the URL.I’m working with a Quectel EC200U module and trying to send a POST request using AT commands.Could anyone guide me on what might be missing in my request (headers/body/SSL config)?


Viewing all articles
Browse latest Browse all 1854

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>