Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Error response from server when sending a POST request using SIM800

Status
Not open for further replies.

electronicsIUST

Member level 3
Member level 3
Joined
Feb 12, 2017
Messages
67
Helped
0
Reputation
0
Reaction score
0
Trophy points
6
Activity points
575
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:

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
what can be the problem?! I use the below AT commands sequence in sim800:

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"}
 

Re: Error Response from server whensending POST request using sim800

Hello,
I see the answer of 200 HTTP code (means request received OK).
But after, it seems that something happens with your nginx server.
Have you tried to send requests to another server instead. just to verify that your code with SIM8080 works well with other servers.
 

Re: Error Response from server whensending POST request using sim800

Hello,
I see the answer of 200 HTTP code (means request received OK).
But after, it seems that something happens with your nginx server.
Have you tried to send requests to another server instead. just to verify that your code with SIM8080 works well with other servers.

I found that the problem was from the server side that returned error response.
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top