Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

[REBOL] Re: pass variables using #exec cgi

From: kevin:sunshinecable at: 7-Feb-2001 21:37

On Wed, 7 Feb 2001, <[norsepower--uswest--net]> wrote:
> How can I immediately execute a rebol .cgi file when the user browses to the > index.html file? > > For example, the following doesn't seem to work... > > <!--#exec cgi="cgi-bin/display-messages.cgi?messageType=news&messageID=none"- > -> > > putting test.domain.com/cgi-bin/display-messages.cgi?messageType=news& > messageID=none in the address bar of the browser works fine, but I can't seem > to pass variables using the #exec server-side include command.
Ryan, Try: <!--#include virtual="/cgi-bin/display-messages.cgi?messageType=news&messageID=none" --> I just tested this on a Linux server running Apache -- it worked fine. If the parameters can be passed via the command line, you could also use something like: <!--#exec cmd="/usr/local/apache/cgi-bin/display-messages.cgi news none" --> Also, note the space before the -->. It's important that it be there. Cheers, Kev