Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Fast CGI request doesn't change

by varghees (Novice)
on Aug 20, 2007 at 02:10 UTC ( [id://633692]=perlquestion: print w/replies, xml ) Need Help??

varghees has asked for the wisdom of the Perl Monks concerning the following question:

use CGI::Fast; while( $q = new CGI::Fast) { print Dumper($q); } value of $q is always same. CGI::Fast doesn't read the query string every time i call this file. Can you please tell me how can i force the CGI::Fast to re-read the HTTP_Query_String every time i post a request to this file?

Replies are listed 'Best First'.
Re: Fast CGI request doesn't change
by snopal (Pilgrim) on Aug 20, 2007 at 03:28 UTC

    CGI is not used in a dynamic context. It is merely a snapshot of a moment of submission.

    My assumption is that once instantiated, it is assumed that the underlying form responses are not changing. Because of that, it is likely that the module was written to not re-instantiate, but to provide what it already has acquired.


    == Desire is one product of absence. -- Stephen Opal ==
      If I use POST method, CGI::Fast returns the correct request object value every time. But in GET it returns the old same object always.
Re: Fast CGI request doesn't change
by Anonymous Monk on Aug 20, 2007 at 08:41 UTC
Re: Fast CGI request doesn't change
by Anonymous Monk on Aug 20, 2007 at 08:40 UTC
    =head1 CAVEATS I haven't tested this very much.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://633692]
Approved by EvanCarroll
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others perusing the Monastery: (6)
As of 2024-04-23 09:40 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found