From: "Federico G. Benavento" <benavento@gmail.com>
To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net>
Subject: Re: [9fans] web server
Date: Sun, 19 Apr 2009 21:05:38 -0300 [thread overview]
Message-ID: <32d987d50904191705v31dd2e71idea5ead9ae9b2ac3@mail.gmail.com> (raw)
In-Reply-To: <5ee8267d96c95682439d58ea295054a1@quanstro.net>
again cgi is a standalone app, /n/sources/contrib/rsc/cgi.c is the one
setting QUERY_STRING
On Sun, Apr 19, 2009 at 8:21 PM, erik quanstrom <quanstro@quanstro.net> wrote:
> On Sun Apr 19 18:04:51 EDT 2009, benavento@gmail.com wrote:
>> skip is pretty much on the point exactly the same convention is valid
>> for cgifs.
>>
>> http://machine/cgifs/script?var0=val0&var1=val1
>>
>> cgi as cgifs are programs that parse the requested uri and from there,
>> after the 2nd '/', get the script name "script" in the example above.
>>
>> On Sun, Apr 19, 2009 at 2:05 PM, erik quanstrom <quanstro@quanstro.net> wrote:
>> > On Sun Apr 19 12:03:54 EDT 2009, 9nut@9netics.com wrote:
>> >> you could make local mods to your httpd so that paths starting with
>> >> /cgi are given similar treatment as those that start with /magic; it
>> >> would execute "cgi" and pass it the arguments as usual. then url is:
>> >>
>> >> http://myserver/cgi/foo?var1=1&var2=2
>> >>
>> >> and in script "foo" the $QUERY_STRING will be "var1=1&var2=2"
>> >
>> > if you look at /sys/src/cmd/ip/httpd/init.c you'll see that
>> > argv[3] is the query string.
>> >
>
> minooka; cd /n/sources/plan9/sys/src
> minooka; grep QUERY_STRING libhttpd/* cmd/ip/httpd/*
> minooka; strings /386/bin/ip/httpd/* | grep QUERY_STRING
>
> yields nothing. maybe this is true for something else, but it's not
> true of the distributed httpd.
>
> - erik
>
>
--
Federico G. Benavento
next prev parent reply other threads:[~2009-04-20 0:05 UTC|newest]
Thread overview: 52+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-04-16 16:10 Rudolf Sykora
2009-04-16 16:16 ` erik quanstrom
2009-04-18 17:19 ` Enrico Weigelt
2009-04-26 21:43 ` Roman V. Shaposhnik
2009-04-16 16:18 ` Devon H. O'Dell
2009-04-16 16:22 ` Rudolf Sykora
2009-04-16 16:26 ` erik quanstrom
2009-04-16 17:22 ` [9fans] Rails? (was Re: web server) Pietro Gagliardi
2009-04-16 17:41 ` hiro
2009-04-16 17:50 ` Devon H. O'Dell
2009-04-16 18:19 ` Pietro Gagliardi
2009-04-16 18:51 ` erik quanstrom
2009-04-17 19:46 ` Tom Lieber
2009-04-16 17:58 ` Jack Johnson
2009-04-17 11:54 ` [9fans] web server maht
2009-04-17 12:02 ` Rudolf Sykora
2009-04-26 21:59 ` Roman V. Shaposhnik
2009-04-27 11:16 ` Uriel
2009-04-27 17:35 ` maht
2009-04-27 17:53 ` erik quanstrom
2009-04-28 18:36 ` maht
2009-04-17 12:31 ` Uriel
2009-04-17 12:45 ` Rudolf Sykora
2009-04-17 12:51 ` Devon H. O'Dell
2009-04-17 13:53 ` maht
2009-04-17 14:07 ` Rudolf Sykora
2009-04-18 22:16 ` Uriel
2009-04-18 22:31 ` john
2009-04-18 23:00 ` Uriel
2009-04-19 0:59 ` john
2009-04-19 6:57 ` Steve Simon
2009-04-19 11:52 ` erik quanstrom
2009-04-19 13:10 ` john
2009-04-19 13:38 ` erik quanstrom
2009-04-19 16:02 ` Skip Tavakkolian
2009-04-19 17:05 ` erik quanstrom
2009-04-19 22:02 ` Federico G. Benavento
2009-04-19 23:21 ` erik quanstrom
2009-04-20 0:05 ` Federico G. Benavento [this message]
2009-04-20 1:42 ` Skip Tavakkolian
2009-04-20 2:04 ` erik quanstrom
2009-04-20 16:17 ` maht
2009-04-17 13:22 ` erik quanstrom
2009-04-18 22:13 ` Uriel
2009-04-18 22:27 ` erik quanstrom
2009-04-18 22:56 ` Uriel
2009-04-19 0:45 ` erik quanstrom
2009-04-26 22:08 ` Roman V. Shaposhnik
2009-04-26 22:34 ` hiro
2009-04-27 12:03 ` erik quanstrom
-- strict thread matches above, loose matches on Subject: below --
2000-12-18 12:08 [9fans] Web Server forsyth
2000-12-18 10:02 thedesertfox95
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=32d987d50904191705v31dd2e71idea5ead9ae9b2ac3@mail.gmail.com \
--to=benavento@gmail.com \
--cc=9fans@9fans.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).