jeelabs / esp-link

esp8266 wifi-serial bridge, outbound TCP, and arduino/AVR/LPC/NXP programmer
Other
2.82k stars 720 forks source link

Browser problem #417

Open Nirvanax opened 5 years ago

Nirvanax commented 5 years ago

Hi,

I am new to esp-link and I am trying it with the El Client "webserver_controls" sample for arduino. Everything works fine with my MacOsx browsers (safari, iron srware, firefox, ecc..), I am able to control a Led, etc.. but not with Edge on Win10: in fact I just get an empty page after clicking on any submit button. After clicking on submit the address bar shows this: http://192.168.4.1/LED.html.json?reason=submit

Is it me doing something in the wrong way or a common issue?

Nirvanax commented 5 years ago

in the meanwhile I found out this is a known issue of Microsoft Edge and iOS browsers. In fact it seems they do not observe the standard HTTP 1.1 specs because whenever they receive a HTTP 204 response they try to reload the page, but since the page contains no datas what I see is a blank page. The other working browers I have listed in my previous post simply do not try to reload the original page, as the HTTP 1.1 specs say.

Now, my new questions is: do you have any idea how I could modify the webserver code to bypass this issue, using such browsers? thanks in advance