404 Bad Request
Posted: Fri Dec 23, 2016 3:39 am
Hi,
I am trying to get content of a file from pastebin.com and I always get 404 bad request as a result.
I have connected ESP8266 over SoftwareSerial with bound rate of 9600.
This is what I am doing:
I am trying to get content of a file from pastebin.com and I always get 404 bad request as a result.
I have connected ESP8266 over SoftwareSerial with bound rate of 9600.
This is what I am doing:
Code: Select all
GET /raw/1nmeKaux HTTP/1.1\r\n
Host: pastebin.com\r\n
Connection: close\r\n
Accept-Charset: ISO-8859-1,UTF-8;q=0.7,*;q=0.7\r\n
Cache-Control: no-cache\r\n
Accept-Language: de,en;q=0.7,en-us;q=0.3\r\n
\r\n
Code: Select all
AT+CIPMUX=0
OK
AT+CIPMODE=0
OK
AT+CWJAP="wifi","wifi"
WIFI DISCONNECT
WIFI CONNECTED
WIFI GOT IP
OK
AT+CIPSTART="TCP","pastebin.com",80
CONNECT
OK
AT+CIPSEND=204
OK
>
busy s...
Recv 204 bytes
SEND OK
+IPD,334:HTTP/1.1 400 Bad Request
Date: Fri, 23 Dec 2016 08:30:31 GMT
Content-Type: text/html
Content-Length: 177
Connection: close
Server: -nginx
CF-RAY: -
<html>
<head><title>400 Bad Request</title></head>
<body bgcolor="white">
<center><h1>400 Bad Request</h1></center>
<hr><center>cloudflare-nginx</center>
</body>
</html>
CLOSED