information about this package can be found in the README. here is a html-version of the README:
useful, some modules won't be used much though.
web - a collection of code for dealing with "the web".
make sure you have $ROOT set, now "mk install" to compile and install the files.
when building from within inferno, insert SYSHOST=Inferno and ROOT= in the mk invocations to override the values in the mkconfig.
the following libraries are installed: * template, for making templates, useful for generating html * cgi, for parsing query-parts of urls * htmlent, for converting html entities (such as ") to normal text * ohttp, old http library. do not use for new code, instead use nhttp, which will become just http when good enough. * rssgen, for generating rss files
appl/cmd contains test programs that use these libraries.
appl/cmd/scgils.b is a scgi program that displays directory listings, for use with scgid.
all files are in the public domain. bug reports, new code, comments and more are welcome at mechiel@xs4all.nl or mechiel@ueber.net.
think about whether doing cgi scripts in shell script is worth the trouble, and how to do it best.
to clone & pull:
hg clone http://www.ueber.net/hgsrv/web/
hg clone static-http://www.ueber.net/who/mjl/hg/web/
download a snapshot of the latest version: web-15.tgz.
the files in the latest revision can be found at /hg/web/files/tip/. a specific revision can be access by replacing "tip" with the revision number, (partial) nodeid or tag name. a few direct links to useful files in the latest revision:
| rev | nodeid | when | diff | why |
|---|---|---|---|---|
| 15 | 6a110d6a774a | 6 weeks | diff | add mkconfig, improve instructions. |
| 14 | 7cb358411745 | 6 months | diff | apparently wasn't finished with the changes yet... fix cgienv & cg... |
| 13 | dc7882b12986 | 6 months | diff | give access to raw bytes in cgi fields (query key/value params). ... |
| 12 | 8faa16044bfb | 6 months | diff | make style more like other code. |
| 11 | 2864c5d963dd | 6 months | diff | add cgiparse, for parsing cgi's QUERY_STRING from the shell. ... |
| 10 | a915eb0874aa | 8 months | diff | add Fields.has(name), to test whether a cgi name is present. and ... |
| 9 | 97a175395881 | 17 months | diff | make README conform to textmangle "syntax". clearify/fix a bit too. |
| 8 | 30f54bae91fa | 18 months | diff | remove bogus <items> tags, add surrounding tags <rss>, and remove ... |
| 7 | e5eeb56b1cc5 | 18 months | diff | add rssgen, small module for generation rss files. |
| 6 | 711e08c294e6 | 19 months | diff | fix mkfiles for /man & /module |
| 5 | 88d78c8c6fcc | 20 months | diff | set PATH to /dis/lib/ohttp.dis |
| 4 | ae9b1ce9c5cb | 21 months | diff | ohttp: ... |
| 3 | 6a7589e6267d | 2 years | diff | import netstr "lib" and a few test tools. why not? |
| 2 | 34f9fda6cb04 | 2 years | diff | welcome scgils.b ... |
| 1 | eb205a93f544 | 2 years | diff | mention documentatino is forthcoming. |
| 0 | 8d075913b600 | 2 years | - | some libs and example tools using them from my local dir. |