CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

Home: Perl Programming Help: Intermediate:
Not getting CGI parameters under FastCGI

 



bakerjay
New User

May 23, 2008, 12:16 AM

Post #1 of 2 (340 views)
Not getting CGI parameters under FastCGI Can't Post

Hi
I am trying to set up FastCGI, and have run into problems. When I run the script the first time, it works fine. When I run it again, it keeps the same CGI parameters (and so always loads the same page).

Simplified down, my script looks like this -


Code
#!/usr/bin/perl 

use CGI;
use FCGI;
use Data::Dumper;

my $count = 0;
my $request = FCGI::Request();

while($request->Accept() >= 0) {
print("Content-type: text/html\r\n\r\n");
print "Hello world - count = $count\n";

my $q = new CGI;

print "Name = " . $q->param("name") ;
$count++;
}


Running Apache 1.3.33 - relevant config is simple, just

Code
FastCgiConfig -autoUpdate 
<Directory "/">
Options FollowSymLinks +ExecCGI
AllowOverride None
AddHandler fastcgi-script pl fpl fcgi
</Directory>


So...how can I get the proper CGI params each time the page is loaded?

Thanks very much
Jay


KevinR
Veteran


May 23, 2008, 9:48 AM

Post #2 of 2 (327 views)
Re: [bakerjay] Not getting CGI parameters under FastCGI [In reply to] Can't Post

I have never used FastCGI, I suggest you ask on www.perlmonks.com
-------------------------------------------------

 
 


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives