httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From (Robert S. Thau)
Subject Re: arguments to cgi scripts in server side includes?
Date Mon, 10 Jul 1995 17:59:20 GMT
   Date: Mon, 10 Jul 1995 12:17:30 -0700 (PDT)
   From: Brian Behlendorf <>

   I remember this being a "known bug" but never having the time to 
   either fix it or find out what was causing it.  Anyone know if this got 
   fixed in Shambhala?  Sean - try grabbing the most recent shambhala off of

More like "known behavior" --- scripts executed from SSI are given the
QUERY_ARGS and PATH_INFO of the parent request, and so the URLs in the
exec directives aren't allowed to have PATH_INFO or QUERY_ARGS of
their own.

One thing to try, in Shambhala, might be inclusion of CGI scripts
(<!--#include virtual="/cgi-bin/foo"--> instead of <!--#exec-->).
This probably doesn't work terribly well (and shouldn't work at all if
IncludesNoExec is on), but it is at least possible that it can be made
to do the job (giving the arguments as QUERY_ARGS ---

   <!--#include virtual="/cgi-bin/foo?args+go+here"-->

NB, this is exploring some dark corners of the code which have seen
very little serious testing yet, so tread with caution.


   On Mon, 10 Jul 1995, Sean Welch wrote:
   > I'm trying to figure out how to pass arguments to scripts that
   > are called as server side includes.  I can't get:
   > <!--#exec cgi="foo.cgi"-->
   > to work at all, no matter where I've tried the arguments, but I
   > can get:
   > <!--#exec cmd="/hot/www/Staff/welch/foo.cgi foo bar baz"-->
   > to do just what I want, but I have to yank out the part that
   > prints content-type at the top.  Is there a way to pass arguments
   > to an exec'd cgi?
   > Sean

   --=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=--  http://www.[hyperreal,organic].com/

View raw message