danielkucera / esp-arduino-ebus

65 stars 11 forks source link

Safari needs header, otherwise complains http/0.9 #39

Closed guido4096 closed 5 months ago

guido4096 commented 1 year ago

Safari needs the header HTTP/1.1 200 OK, otherwise it rejects the connection with "Cancelled load ... because it is using http/0.9"

guido4096 commented 1 year ago

See also here: https://forum.arduino.cc/t/esp8266-responds-using-http-0-9/1005265

danielkucera commented 1 year ago

I was thinking about adding a simple command protocol to this port, something like:

Or maybe adding a separate port with simple HTTP server and implement all of this there and keep this server simple as is is.

So it has the backward compatibility but adds new features.

guido4096 commented 1 year ago

adding a command protocol would be nice, will also be useful to trigger ondemand wifi config. I don't care myself at this moment for the backward compatibility of the status server... .

Maybe then add a check for GET /status so the header can be added and the raw data will be provided as is right now?

danielkucera commented 5 months ago

status server working in v7.0 #64