electronicsIUST
Member level 3
Error Response from server whensending POST request using sim800
I want to send data to a server using POST method with sim800. When I use POSTMAN, data is sent correctly but when I use the same headers of POSTMAN in the sim800 error is returend from the server and below message is recieved:
I want to send data to a server using POST method with sim800. When I use POSTMAN, data is sent correctly but when I use the same headers of POSTMAN in the sim800 error is returend from the server and below message is recieved:
what can be the problem?! I use the below AT commands sequence in sim800:HTTP/1.1 200 OK
Server: nginx/1.14.0 (Ubuntu)
Date: Thu, 01 Nov 2018 21:48:40 GMT
Content-Type: text/html; charset=utf-8
Content-Length: 5
Connection: keep-alive
Error
CLOSED
Code:
AT+CGATT=1
AT+CIPMUX=0
AT+CSTT="APN","USER","PASS"
AT+CIICR
AT+CIFSR
AT+CIPSHUT
AT+CIPSEND=20
POST /post HTTP/1.1
Host: **.**.***.***
Content-Type: application/json
Content-Length:23
{"postkey":"postvalue"}