Use this forum to chat about hardware specific topics for the ESP8266 (peripherals, memory, clocks, JTAG, programming)

User avatar
By braous
#52619 Hi,
I try to download a file using AT command and esp8266 so I follow this steps :
1) AT+RST
ok
2)AT+CWJAP="SSID","password"
ok
3)AT+CIPSTART="TCP","www.anta.net",80
ok linked
4)AT+CIPSEND=70
>
5)GET / HTTP/1.1/r/n HOST: www.anta.net/r/n connection: close/r/n/r/n
SEND ok
+IPD,392:HTTP/1.1 400 Bad Request
Date: Wed, 10 Aug 2016 09:12:36 GMT
Server: Apache
Content-Length: 226
Connection: close
Content-Type: text/html; charset=iso-8859-1

<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>400 Bad Request</title>
</head><body>
<h1>Bad Request</h1>
<p>Your browser sent a request that this server could not understand.<br />
</p>
</body></html>

OK


I would like to know why it send me bad request or how I download a file using esp8266 and thanks.