You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Tom Browder <to...@gmail.com> on 2019/10/14 19:27:06 UTC

[users@httpd] SSI and CGI execution

I am successfully using CGI progs (written in the Perl and Raku programming
languages), but they are standalone and execute their tasks when called in
either of these ways:

1. as an SSI program in the <head> section of an .shtml page:

    <!--#virtual "/path/to/program1.cgi" -->

2. as an href link in the <body> section of an .html or .shtml page:

    <a href="/path/to/program2.cgi">Show Site Statics</a>

Question: Can one somehow add an argument to the execution path in either
case?

I see case 1 is a likely candidate, but I would like to use the same
program in both cases but use different options as appropriate.

Thanks.

Best regards,

-Tom