|
From: | Markus Pischinger |
Subject: | [lwip-users] httpd server app lwip 2.0.2 cgi |
Date: | Fri, 10 Nov 2017 14:05:28 +0100 |
User-agent: | Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.4.0 |
Hi guys, I've been trying out the new httpd server app that comes with lwip 2.0.2. It works great so far for static websites but i'm looking into CGI to make GET requests. Has anyone maybe got an example on how to do this? And what should I use? There is a "old style" with LWIP_HTTPD_CGI and "new style" with LWIP_HTTPD_CGI_SSI. I tried the CGI_SSI, which works so far - i wrote a httpd_cgi_handler and it gets called on GET requests. But i don't really get how i should return any kind of data here? That's the only comment in the header file to the cgi_handler: /** Define this generic CGI handler in your application.Thanks in advance for any help! |
[Prev in Thread] | Current Thread | [Next in Thread] |