1# lws minimal http server-cgi
2
3## build
4
5```
6 $ cmake . && make
7```
8
9## usage
10
11This example runs a script ./my-cgi-script.sh when you vist /
12
13The script dumps some information from /proc on stdout, which
14is proxied back to the browser, script output on stderr is
15printed in the console.
16
17It's able to serve the script output over h1 using chunked encoding,
18and over h2 having stripped the chunked encoding from the script
19output.
20
21```
22 $ ./lws-minimal-http-server-cgi
23[2019/11/18 16:31:29:5481] U: LWS minimal http server | visit http://localhost:7681
24[2019/11/18 16:31:40:2176] N: CGI-stderr: lwstest script stderr: REQUEST_METHOD was GET
25```
26
27Visit http://localhost:7681
28
29