You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by ti...@comcast.net on 2015/07/07 21:29:58 UTC
[users@httpd] CGI Arguments
I can call a cgi script from an html form, but I am not able to call a cgi script with one or more
command-line arguments. Can anyone tell me how to do that? Thank you very much.
Timothy Mann
Re: [users@httpd] CGI Arguments
Posted by ti...@comcast.net.
Kurtis,
Thanks very much.
Timothy Mann
----- Original Message -----
From: "Kurtis Rader" <kr...@skepticism.us>
To: users@httpd.apache.org
Sent: Tuesday, July 7, 2015 5:36:56 PM
Subject: Re: [users@httpd] CGI Arguments
On Tue, Jul 7, 2015 at 12:29 PM, < tim_mann@comcast.net > wrote:
I can call a cgi script from an html form, but I am not able to call a cgi script with one or more command-line arguments. Can anyone tell me how to do that? Thank you very much.
CGI scripts don't have command-line arguments. Information is passed to them from the web server via environment variables and, for POST requests, standard input. You pass arguments to a CGI script via the URI query string. See https://en.wikipedia.org/wiki/Common_Gateway_Interface
--
Kurtis Rader
Caretaker of the exceptional canines Junior and Hank
Re: [users@httpd] CGI Arguments
Posted by Kurtis Rader <kr...@skepticism.us>.
On Tue, Jul 7, 2015 at 12:29 PM, <ti...@comcast.net> wrote:
> I can call a cgi script from an html form, but I am not able to call a cgi
> script with one or more command-line arguments. Can anyone tell me how
> to do that? Thank you very much.
>
CGI scripts don't have command-line arguments. Information is passed to
them from the web server via environment variables and, for POST requests,
standard input. You pass arguments to a CGI script via the URI query
string. See https://en.wikipedia.org/wiki/Common_Gateway_Interface
--
Kurtis Rader
Caretaker of the exceptional canines Junior and Hank