[Xitami] CGI arguments passing (newbee question)

Francis Turner xitami@lists.xitami.org
Wed, 17 Apr 2002 14:12:22 +0200


E. Egberts wrote:

>Hi,
>
>I'm trying to implement a couple of Perl scripts which expect their
>arguments in the $ARGV array. Can I configure the Xitami web server (version
>2.4d9) such that arguments are passed through this array in stead of the CGI
>envirionment variable QUERY_STRING?
>
No.

However it should be relatively trivial to parse either <STDIN> or 
$ENV{'QUERY_STRING'} to create a suitable array. The problem is that the 
output of a program that uses a CLI fo its arguments is unlikely to 
suitable for display on a webserver as it won't generate HTML. What you 
probably need to do is create a wrapper progrm (using for example the 
CGI.pm library) that you can then wrap around all these scripts.

Francis

-- 
...if the US Government were ever to get really serious about Internet 
security, the top players in Microsoft's management hierarchy would find 
themselves handcuffed, blindfolded, led onto a tarmac within some obscure 
Air Force base, and shot.
-- Thomas C Greene (http://www.theregister.co.uk/content/55/23223.html)