From david@idonex.se Thu Nov 6 21:05:30 1997 Date: 29 Oct 1997 18:27:42 -0800 From: David Hedbor To: roxen-alpha@roxen.com Subject: WWW.CGI() Resent-Date: Thu, 30 Oct 1997 03:28:07 +0100 (MET) Resent-From: roxen-alpha@roxen.com Here is a first version of my CGI-parse module for Pike. Put it in /your/pike/library/path/modules/WWW.pmod/CGI.pike and test it in a script like this: #!/usr/local/bin/pike void main() { object id = WWW.CGI(); write(sprintf("\n\n
%O
", mkmapping(indices(id), values(id)))); } It works with any server, but if uses with Roxen you get things like prestates and configs. The id-object is more or less identical to the Roxen request_id. It does support GET, POST and , in the same way as Roxen does. Please tell me about things you think are missing / could be useful / are bugging etc. Also, does the PERL CGI-parser do things that this one doesn't that is useful? Have fun! Oh, it does need a new version of Pike of course. -- [ Below is a random fortune, which is unrelated to the above message. ] Staff meeting in the conference room in 3 minutes. [Part 2, Application/OCTET-STREAM 7.2KB] [Unable to print this part]