Why cannot my android phone cannot display webpage sent from ESP8266 ?

magnetron
Posts: 9
Joined: Tue Nov 10, 2015 10:13 pm

Why cannot my android phone cannot display webpage sent from ESP8266 ?

Postby magnetron » Thu Feb 23, 2017 6:54 pm

hello dear forum,

the below webpage is sent from ESP8266 to the WinXP PC
( the picture is a bit old - in the meantime I developed the same webpage and included HTML checkbox )

Image

however when I want to see the same webpage from my android phone
following error displayed
------------------------------------------
192.168.1.110 doesnot work - 192.168.1.110 sent an invalid response
ERR_INVALID_HTTP_RESPONSE
-------------------------------------------
however when I also direct the ESP 8266 message traffic to the serial port of PC
I can see the internet package sent from android going to and coming from ESP8266 on hyperterminal

why I cannot see the webpage on my android phone ( chrome browser )?
( I type 192.168.1.110:1024 )

thanks

User avatar
pratik
Posts: 416
Joined: Wed Jun 29, 2016 7:17 pm
Location: India
Contact:

Re: Why cannot my android phone cannot display webpage sent from ESP8266 ?

Postby pratik » Wed Mar 01, 2017 2:10 pm

Seems like you are sending an invalid HTTP header to the phone.
Does the exact same thing work good with a PC?
Also, make sure that content length parameter in header is correct, all data is base64 compatible (non-text data is not allowed in HTTP!)
Also, make sure no random double-newline characters are present. That marks the end of HTTP header and may result in early termination of header by mistake.
Regards,
Pratik Panda
Website: http://www.PratikPanda.com

Custom firmware, Knowledge base and freelancing (ESP8266/ESP32):
http://www.iot-bits.com

Who is online

Users browsing this forum: No registered users and 5 guests