Project homepage Mailing List  Warmcat.com  API Docs  Github Mirror 
{"schema":"libjg2-1", "vpath":"/git/", "avatar":"/git/avatar/", "alang":"", "gen_ut":1752656212, "reponame":"libwebsockets", "desc":"libwebsockets lightweight C networking library", "owner": { "name": "Andy Green", "email": "andy@warmcat.com", "md5": "c50933ca2aa61e0fe2c43d46bb6b59cb" },"url":"https://libwebsockets.org/repo/libwebsockets", "f":3, "items": [ { "schema":"libjg2-1", "oid":{ "oid": "8d4079884bace4f9580b49f3ebde33525a924eb6", "alias": []},"tree": [ { "name": "CMakeLists.txt","mode": "33188", "size":766}, { "name": "README.md","mode": "33188", "size":674}, { "name": "minimal-http-server.c","mode": "33188", "size":2887}, { "name": "my-cgi-script.sh","mode": "33261", "size":898}],"s":{"c":1752656212,"u": 614}} ,{"schema":"libjg2-1", "cid":"246454af9f8fb6c36e247f8ff19016cd", "oid":{ "oid": "8d4079884bace4f9580b49f3ebde33525a924eb6", "alias": []},"blobname": "minimal-examples-lowlevel/http-server/minimal-http-server-cgi/README.md", "blob": "# lws minimal http server-cgi\n\n## build\n\n```\n $ cmake . \u0026\u0026 make\n```\n\n## usage\n\nThis example runs a script ./my-cgi-script.sh when you vist /\n\nThe script dumps some information from /proc on stdout, which\nis proxied back to the browser, script output on stderr is\nprinted in the console.\n\nIt's able to serve the script output over h1 using chunked encoding,\nand over h2 having stripped the chunked encoding from the script\noutput.\n\n```\n $ ./lws-minimal-http-server-cgi\n[2019/11/18 16:31:29:5481] U: LWS minimal http server | visit http://localhost:7681\n[2019/11/18 16:31:40:2176] N: CGI-stderr: lwstest script stderr: REQUEST_METHOD was GET\n```\n\nVisit http://localhost:7681\n\n","s":{"c":1752656212,"u": 181}} ],"g": 2139,"chitpc": 0,"ehitpc": 0,"indexed":0 , "ab": 1, "si": 0, "db":0, "di":1, "sat":0, "lfc": "0000"}