Chat freely about anything...

User avatar
By Gurpiyar Singh
#69223 Hello Everyone!!

Greeting from my side....

I am new to esp8266 so i have little knowledge about it. I have to send data to Web page via external web server. I am trying to use in AT+CWMODE=3 to connect it to external server but i only recieve 400 bad request in return. Can anyone figure out my mistake pls....

AT commands i am using are as here:

AT+CIPSTART="TCP","www.eespl.org",80\r\n
AT+CIPSEND=59\r\n
GET /testing_gurpiyar.php HTTP/1.1\r\nHost: http://www.hostgator.com\r\n\r\n\r\n


Its urgent...
User avatar
By eduperez
#69357 A "400 bad request" message usually indicates that the (external) web server did receive your request, but does not understand it. If I try to issue that request from the command-line in my computer, I obtain the same error; so it is definitively an error in your request or the server.

Is the server at "www.eespl.org" configured to accept requests for "www.hostgator.com"?
Is the server at "www.hostgator.com" answering for "/testing_gurpiyar.php"?
Is your request really 59 bytes long?