httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tim_m...@comcast.net
Subject Re: [users@httpd] CGI Arguments
Date Fri, 10 Jul 2015 15:51:28 GMT
Kurtis, 

Thanks very much. 

Timothy Mann 


----- Original Message -----

From: "Kurtis Rader" <krader@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 


Mime
View raw message