From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <7ea9dcdf5b93ebdbed13e86abbf53749@9netics.com> To: 9fans@9fans.net Date: Sun, 19 Apr 2009 18:42:56 -0700 From: Skip Tavakkolian <9nut@9netics.com> In-Reply-To: <5ee8267d96c95682439d58ea295054a1@quanstro.net> MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit Subject: Re: [9fans] web server Topicbox-Message-UUID: e9c048da-ead4-11e9-9d60-3106f5b1d025 i think John mentioned he was using cgi.c that's in Russ' contrib area. did i imagine it? (entirely possible) > 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 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