ESP8266 Webserver Project

Moderator: Sprite_tm

User avatar
By tomte76
#45639 Hi,

I'm trying to read all of the cool code of esphttpd to understand how everything is done and how I can expand it with my own ideas. Thank you very much to spritetm for sharing this. If you come to Stuttgart, Germany it would be a pleasure to buy you some beers :)

At the moment I'm stuck at the file html/test/test.cgi. It seems to be binary data. And it seems to be delivered with a git checkout. What exactly is the function and the content of the file? file shows it as binary data, strings does not find any readable characters. Is it only null-data to have something to download?
User avatar
By Sprite_tm
#45678 It is part of the libesphttpd testbed in test/index.html: it will output either 1K of data or whatever is given in the 'len' GET arg if it's called using a GET request, and will sink any data that is sent using a POST request and finally respond with the length of that data. I agree, it could maybe do with a comment or two to indicate it's purpose.