Re: CGI Parameters
David Birnbaum <[email protected]>
| Newsgroups | gmane.comp.web.fastcgi.devel |
|---|---|
| Message-ID | <[email protected]> |
How come you don't use CGI::Fast:
while( my $request = new CGI::Fast() ( {
....
}
That ought to do the right thing in all cases.
David.
-----
On Mon, 22 Aug 2005, Steve Ferguson wrote:
> 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/
>
___________________________________
fastcgi-developers mailing list
http://fastcgi.com/fastcgi-developers/