Parameters to fastcgi
Added by briqueabraque over 16 years ago
Hi,
With CGI, I used to pass parameters to a script using:
i.e., script 'program' is called with 'a' set to "1". Is this
still supposed to work with fastcgi? I tried without success, but
I would like to know if this is a bug in my program or if
something is supposed to work in a different way.
Thanks,
Maurício
P.S.: my fastcgi configuration, just in case:
server.modules += ( "mod_fastcgi" )
fastcgi.server = ( "ecg" =>
((
"bin-path" => "/home/mauricio/bin/webECG",
"port" => 8002,
"check-local" => "disable"
))
)
Replies (2)
RE: Parameters to fastcgi - Added by jpd over 16 years ago
I think you need to parse the query_string. What language are you writing in?
for c:
getenv("QUERY_STRING")
RE: Parameters to fastcgi - Added by Morgon over 16 years ago
fastcgi.server = ( "ecg" =>
((
"bin-path" => "/home/mauricio/bin/webECG",
"port" => 8002,
"check-local" => "disable"
))
)
You assigned the fcgi server to look for 'ecg', but you're not calling it in your URL (unless 'program' == 'ecg' in your path).
Assuming http://localhost/program?a=1
You should use
fastcgi.server = ( "/program" =>
((
"bin-path" => "/home/mauricio/bin/webECG",
"port" => 8002,
"check-local" => "disable"
))
)
Of course, this program will need to understand querystrings, which isn't something that Lighty or FCGI can necessarily control.