Re: Video: Setting up a web server on an ESP8266
Posted: Mon Oct 26, 2015 7:46 pm
It is assumed (by most folks including me) that when I open a browser to http://www.example.com that an HTTP GET request is made to that server. While this is indeed what happens, some browsers (eg. Chrome) also submit a second HTTP request which is for: http://www.example.com/favicon.ico. This is the icon that shows in the tab bar of a browser for that site. The proper response is to return either an icon/image or to return 404 indicating not found. When we write ESP8266 web servers, we need to be cognizant of the extra request and accommodate it appropriately.
PS> I too had the 1K ZX81 and then the 16K ram-pack but I would always press too hard and the ram-pack would wobble and I'd lose my program. I then moved to the BBC model B and thought I was in heaven (colour AND sound!!!) Then the Amstrad CPC-464 ... and then the Amstrad PC512 ... then the Amiga ... and then the rest is history
PS> I too had the 1K ZX81 and then the 16K ram-pack but I would always press too hard and the ram-pack would wobble and I'd lose my program. I then moved to the BBC model B and thought I was in heaven (colour AND sound!!!) Then the Amstrad CPC-464 ... and then the Amstrad PC512 ... then the Amiga ... and then the rest is history