Search found 2 matches

by yanisme
Fri Jul 30, 2021 12:10 pm
Forum: ESP-AT
Topic: POST JSON content using AT+CIPSEND command
Replies: 2
Views: 16624

Re: POST JSON content using AT+CIPSEND command

resolved: shall not put "\r\n" characters into the string but like this:

> POST /test_json.php HTTP/1.1
Host: test.myserver.com
Content-Type: application/json
Content-length: 11

{"test": 3}
by yanisme
Thu Jul 29, 2021 12:51 pm
Forum: ESP-AT
Topic: POST JSON content using AT+CIPSEND command
Replies: 2
Views: 16624

POST JSON content using AT+CIPSEND command

I need correct syntax to use AT+CIPSEND command in order to send HTTP POST request. First I send: AT+CIPSTART="TCP","test.myserver.com",80 CONNECT OK Then: AT+CIPSEND=130 When I get the prompt I send something like: > POST /test_json.php HTTP/1.1\r\nHost: test.myserver.com\r\nContent-Type: applicati...