2

I am trying to send a simple GET/POST request to a dummy end point on https://requestbin.com/. I am using an ESP8266 module. I am using the arduino serial monitor to send these AT commands. I connect to wifi and then use the following AT commands

AT+CIPSTART="TCP","54.166.71.140 ",443  (the IP address from requestbin)

I then do

AT+CIPSEND=80

followed by

GET / HTTP/1.0\r\nHost: fc35001f8ec49962d182320446070d.m.pipedream.net\r\n\r\n

I get the output as follows

Recv 80 bytes

SEND OK

+IPD,272:HTTP/1.1 400 Bad Request Server: awselb/2.0 Date: Mon, 07 Dec 2020 13:28:01 GMT Content-Type: text/html Content-Length: 122 Connection: close

<html> <head><title>400 Bad Request</title></head> <body> <center><h1>400 Bad Request</h1></center> </body> </html> CLOSED

Is there problem with the length of CIPSEND or the format of the request itself.

0 Answers0