-->
Page 1 of 3

ESP8266 can't send HTTP responses

PostPosted: Mon Jan 26, 2015 8:56 am
by ares.marco
Hi all,
I'm having trouble with the CIPSEND command.
I've uploaded the AI-v0.9.5.0 AT Firmware(https://drive.google.com/folderview?id= ... sp=sharing) and
I've tried to send a HTTP response like this one "HTTP/1.1 200 OK\r\nContent-Type: text/html\r\nConnection: close\r\n"
but the process stops as soon as the \r\n characters are submitted.
So it keep hanging on this situation
> HTTP/1.1 200 OK
If I try to send not formatted HTTP data there are no problems... :cry: :cry:
Any ideas? :idea:

Thanks you all!

Re: ESP8266 can't send HTTP responses

PostPosted: Tue Jan 27, 2015 2:04 pm
by Yan78
same problem here with my attempt to implement arduino web server.

got me one hard day trying to figured out what;s the problem. i found the problem when I installed Fiddler Web Debuger.
Then I could see that when I use AT+CIPSEND and in the message I use \r\n, this is needed in http header, the \r ( 0x0D) is not transmited by ESP8266.

this is the problem. now I'm trying to find answers and what can I do.
firmware I use is 00200.9.5(b1) .

any idea? :idea:

Re: ESP8266 can't send HTTP responses

PostPosted: Tue Jan 27, 2015 2:09 pm
by Yan78
same problem here with firmware 00200.9.5(b1) on esp8266.

the problem I found using Fiddler Web Debugger is that when you try to send \r\n, needed in http header, the esp8266 will only send \n (0x0A) and will ignore \r (0x0D)

and that's a problem.

any ideea how to solve this?

Re: ESP8266 can't send HTTP responses

PostPosted: Fri Jan 30, 2015 4:13 am
by Athena
@Yan78 , maybe you could try it with another tool?