Hi all
I am using quectel M65 modem. i need to send some data to the server via post request. the data type should text/plain. how to change content type as text/plain. default content type is URL encoded.
My code as below.
Thanks
AT
AT
OK
cnt17
AT+CSQ
AT+CSQ
+CSQ: 31,0
OK
cnt24
AT++QICLOSE
AT++QICLOSE
+CME ERROR: 58
cnt21
AT+QIDEACT
AT+QIDEACT
DEACT OK
cnt273
AT+QIFGCNT=0
AT+QIFGCNT=0
OK
cnt10
AT+QICSGP=1,“dialogbb”
AT+QICSGP=1,“dialogbb”
OK
AT+QIREGAPP
AT+QIREGAPP
OK
cnt12
AT+QIACT
AT+QIACT
OK
cnt324
AT+QILOCIP
AT+QILOCIP
10.131.20.22
cnt1000
AT+QHTTPCFG=?
AT+QHTTPCFG=?
+QHTTPCFG: (“requestheader”,“responseheader”),(0,1)
OK
cnt39
AT+QSSLCFG=“ctxindex”,1
AT+QSSLCFG=“ctxindex”,1
+QSSLCFG: 1,4,0,“0X0005,0X0004,0X0035,0X002F,0X003D,0X000A”,"","",""
OK
cnt49
AT+QHTTPCFG=“requestheader”,1
AT+QHTTPCFG=“requestheader”,1
OK
cnt11
AT+QHTTPCFG=“responseheader”,0
AT+QHTTPCFG=“responseheader”,0
OK
cnt11
AT+QSSLCFG=“https”,1
AT+QSSLCFG=“https”,1
OK
cnt11
AT+QHTTPURL=19,60
AT+QHTTPURL=19,60
CONNECT
cnt14
https://lecoiot.iot
OK
cnt9
AT+QHTTPPOST=161,60,60
AT+QHTTPPOST=161,60,60
CONNECT
cnt480
POST /meter/tp HTTP/1.1
Host: lecoiot.iot
Content-Type: text/plain
Accept: /
Content-Length: 49
<002172000001,10,0,0,700.00,413027027029024,158>
+CME ERROR: 3822
cnt484
AT+QHTTPREAD=45
AT+QHTTPREAD=45
+CME ERROR: 3804
cnt13
HtTP act: <3804>
Return ERROR 0 while upload