Commits
- Commit:
d431188c66e521a110f987eed2655cc9dfde9864
- From:
- Omar Polo <op@omarpolo.com>
- Date:
fixed changelog format for old entries
- Commit:
a5d310bc0d07fea3d75b593ea6b2f86dad006211
- From:
- Omar Polo <op@omarpolo.com>
- Date:
[cgi] added support for path parameters
enhance the CGI scripting support so that script can take path
parameters. That is, a script at /cgi/foo is called when the request
path is /cgi/foo/bar/...
This commit also introduce some backward incompatible changes as the
default env variables set for the CGI script changed.
- Commit:
92e66347ed2971e811170559eb8865e0db0a5d3e
- From:
- Omar Polo <op@omarpolo.com>
- Date:
regen readme
- Commit:
0ed56567950c521041674b3e255147b6d6bea03e
- From:
- Omar Polo <op@omarpolo.com>
- Date:
documentation improvements
- Commit:
72f653b65247a296f1be344f3c6c1ad981b9fbcf
- From:
- Omar Polo <op@omarpolo.com>
- Date:
[cgi] execute cgi scripts only inside a specific directory
change the meaning of the -x flag: now it takes a string and executes
CGI scripts only if they are inside a directory with the given name,
relatively to the document root.
- Commit:
f65ed01841f4603f861bed55224227501f56372b
- From:
- Omar Polo <op@omarpolo.com>
- Date:
[cgi] set QUERY_STRING only if there is a query string
- Commit:
120381c93d65a860f38bc5e1541b1c00ff959124
- From:
- Omar Polo <op@omarpolo.com>
- Date:
[debug] print number of connected clients on SIGINFO
or SIGUSR2 for poor peoples
- Commit:
aff8d1901084bbfd81f4a6335dbed70a02b930fb
- From:
- Omar Polo <op@omarpolo.com>
- Date:
handle CGI concurrently
don’t stop-the-world-until-cgi-end, but rather poll on the script, so
we can handle other requests in the meantime.
- Commit:
60ba426e7e5da49c017f306be78446032cdaf1cf
- From:
- Omar Polo <op@omarpolo.com>
- Date:
[cgi] setenv instead of building an env + define more env variables
- Commit:
75d233f00c010a1489d597b82b13e3d09bc01e45
- From:
- Omar Polo <op@omarpolo.com>
- Date:
pass the query parameter to start_cgi
- Commit:
aa0fe0cf240e0add51d5b60a83dd554fd0575b28
- From:
- Omar Polo <op@omarpolo.com>
- Date:
extract query parameters from the URL
- Commit:
3c19febb014ddc7d9afa1b517c108da4b3fda5dc
- From:
- Omar Polo <op@omarpolo.com>
- Date:
ensure the requested protocol is “gemini”
…and not something else that happens to be 6-bytes long.
- Commit:
e8cac16e03c5b86eebd6e50b267a3f0479bf3a81
- From:
- Omar Polo <op@omarpolo.com>
- Date:
mark every open file as close-on-exec
- Commit:
72342dc9606a0283490a3a9283d2ed2d31888eeb
- From:
- Omar Polo <op@omarpolo.com>
- Date:
implementing CGI – NOT READY YET!
This is a first try at implementing CGI scripting. The idea is that,
if CGI is explicitly enabled by the user, when a user requires an
executable file instead of serving it to the client, that file will be
executed and its output fed to the client.
There are various pieces that are still lacking, the firsts that comes
to mind are:
- performance: the handle_cgi just loops ignoring the
WANT_POLLIN/POLLOUT and blocking if the child process hasn’t
outputted anything.
- we don’t parse query variable (yet)
- we need to set more variables in the child environment
side question: it’s better to set the variables using setenv() or
by providing an explicit environment?
- document what environment the CGI script will get
- improve the horrible unveil/pledge(cgi ? …)
but now I can serve “hello-world”-tier script from gmid!
- Commit:
2c3a40faf850ad608abf87f928a11fb4fba3057b
- From:
- Omar Polo <op@omarpolo.com>
- Date:
added option to log to a file