Re: CGI Parameters

Steve Ferguson <[email protected]>
Newsgroups gmane.comp.web.fastcgi.devel
Message-ID <[email protected]>
I had the same problem initially and came up with the following solution:

while ($request->Accept() >= 0) {
  # Parse the GET/POST input
  my $input = ('GET' eq $ENV{REQUEST_METHOD} ? $ENV{QUERY_STRING} : \*STDIN);
  my $query = new CGI($input);


If I'm submitting a request via GET I parse the input from the QUERY_STRING
environment variable, otherwise get POST input from standard input.

HTH,
Steve

Shane De Jager wrote:
> Hi
> 
> I have just started using fastCGI for my regular CGI scripts. Everything is working great except that when i use parameters (eg in a query string) it works fine the first time, but when i run the script with other parameters it doesn't use the new ones, it uses the old ones. Is there a special way the fastCGI handles parameters? Some help will be greatly appreciated.
> 
> 
> 
> ------------------------------------------------------------------------
> 
> ___________________________________
> fastcgi-developers mailing list
> http://fastcgi.com/fastcgi-developers/

-- 
Steve Ferguson                        | Having opinions without knowledge
Email: [email protected]        | is not of much value; not knowing
http://dogbert.dnsalias.org:8080/~stf | the difference between opinions
				      | and knowledge is a positive
                                      | indicator of ignorance.
___________________________________
fastcgi-developers mailing list
http://fastcgi.com/fastcgi-developers/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.