I am unable to send json data using KHTTPOST, with either HTTP or HTTPS
As I understand it after CONNECT any data entered up to “–Eof–Pattern–” should be sent to the server.
After I get CONNECT as soon as I enter any character the post completes and no data is sent.
example:
AT+KHTTPCFG?
+KHTTPCFG: 2,1,“httpbin.org”,80,0,“”,“”,0,0,0
AT+khttppost=2,“/post”
+KHTTP_IND: 2,1
CONNECT
<--------------------------here I entered A
HTTP/1.1 200 OK
date: Thu, 16 May 2024 07:51:46 GMT
content-type: application/json
content-length: 303
connection: keep-alive
server: gunicorn/19.9.0
access-control-allow-origin: *
access-control-allow-credentials: true
{
“args”: {},
“data”: “”,
“files”: {},
“form”: {},
“headers”: {
“Content-Type”: “application/json”,
“Host”: “httpbin.org”,
“X-Amzn-Trace-Id”: “Root=1-6645bb12-7ecf5ad5504c590b2f28e54d”
},
“json”: null,
“origin”: “89.200.36.201”,
“url”: “http://httpbin.org/post”
}
–EOF–Pattern–
OK
+KHTTP_IND: 2,3,1,200,“OK”