-->
Page 1 of 1

What is html/test/test.cgi

PostPosted: Sun Apr 17, 2016 10:35 am
by tomte76
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?

Re: What is html/test/test.cgi

PostPosted: Mon Apr 18, 2016 3:50 am
by Sprite_tm
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.