Chat freely about anything...

User avatar
By SimonB
#49644 Hello ESP8266 forums,

If I send a GET request to my site, I always seem to get a 400 BAD REQUEST... I've tried every possible fix on every forum but nothing seems to work.

My ESP8266-01 has been connected fine via the softwareserial of Arduino. I have it connected to my wifi and set the mode to 3.

Code: Select allWIFI CONNECTED
WIFI GOT IP
AT+CIPSTART="TCP","minecraftcreations.com",80

CONNECT

OK
AT+CIPSEND=69


OK
>

busy s...

Recv 69 bytes

SEND OK

+IPD,325:HTTP/1.1 400 Bad Request
Server: nginx/1.10.1
Date: Thu, 23 Jun 2016 08:28:42 GMT
Content-Type: text/html
Content-Length: 173
Connection: close

<html>
<head><title>400 Bad Request</title></head>
<body bgcolor="white">
<center><h1>400 Bad Request</h1></center>
<hr><center>nginx/1.10.1</center>
</body>
</html>
CLOSED


It doesn't show it in the console, but the request I sent is:

Code: Select allGET /prive/test.html HTTP/1.1\r\nHost: minecraftcreations.com\r\n\r\n


I feel like I've tried everything. I spend more than 5 hours now to fix this problem. Does anyone have any idea why this problem occurs and knows how to resolve it?