-->
Page 1 of 1

Help request - getting a webpage with AT commands

PostPosted: Mon Nov 24, 2014 1:48 pm
by hiatusesp8266
Hi all, anyone here help with this ESP8266 problem? I am sending the following commands to retrieve a webpage, but no data is coming back. The ESP8266 module is connected to the wifi, but when I make the GET request no data is returned:

AT+CIPMUX=0
OK

AT+CIPSTART="TCP","173.194.123.5",80
OK
Linked

AT+CIPSEND=16
> GET / HTTP/1.0

SEND OK

....then that's it, I expected to see some source HTML from Google.com, but there is nothing.

Re: Help request - getting a webpage with AT commands

PostPosted: Mon Nov 24, 2014 2:57 pm
by kingfisher
mmmmhhhh...
it depends if you configured putty or whatever terminal you are using to send \r, \n or both on enter.

With a single newline the server waits for headers

try with

AT+CIPSEND=18
> GET / HTTP/1.0

and give a supplementary \r\n.

Re: Help request - getting a webpage with AT commands

PostPosted: Mon Dec 01, 2014 4:02 pm
by frasenci
[quote="and give a supplementary \r\n."[/quote]

+1

Get sentence has to be ended with CR LF CR LF ( \r\n\r\n )

Greetings
Francisco