What it does is take the command line options and HTTP headers and put them
all in environment variables.
I did this to facilitate shell scripted web pages.
It works by adding :
rfork E
/bin/ip/httpd/populate_environment.rc $*
to the top of any web serving scripts and then the HTTP Headers etc. can be
accessed through /env
the example script uses html_encode.sed, which is a very low quality cut and
pasted html entity encoder (supplied)
I'm also including url_encode.awk which is nothing to do with this but
useful all the same
For as long as I am on this IP address you can see it in action at
http://pc1-nott2-3-cust35.not.cable.ntl.com/magic/http_info.rc
suggestions / criticisms welcome
Matt
tomorrow
m
On Fri, Jul 19, 2002 at 04:25:51AM +0100, matt wrote:
> I've been playing with httpd this evening and done what I think is a useful
> script.
>
<snip>
--
Bill
Amsterdam, NL
> Is httpd ported to Plan9? Is that what you are using?
> Just curious. Right now I have been doing things with
> php under Slackware but would prefer Plan9.
no, ip/httpd is it's own thing not Apache, no PHP here
man 8 httpd
or
You have another option:
Look http://plan9.aichi-u.ac.jp/pegasus/eman-1.0/
I am afraid that document is poor.
Writing English is hard work for me.
To download: http://plan9.aichi-u.ac.jp/netlib/
My reason for using php and Sablotron is to present
web pages dynamically and keep content (XML) separate
from style (XSL).
Here is a link to a web site I have set up to
experiment and learn with. Sorry that this does not
directly pertain to Plan9 now but as I said, if I can
find a way to accomplish the same thing with Plan9
I will give it a go.
--
Bill
Amsterdam, NL