Post topics, source code that relate to the Arduino Platform

User avatar
By Filipsi
#59860 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:

Code: Select allGET /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 allAT+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
User avatar
By grejuca
#63817 Hello, I am having the exact same issue. I have been browsing around but have not found any solution. Were you able to figure it out? If so, what did you do?