Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Perl > Mystery Repost

Thread Tools

Mystery Repost

Posts: n/a
my $q = new CGI;
my $pr = getNextPage();
print $q->redirect($pr);

If $pr is null or is the same script that's currently executing, the
script executes again with all of the querystring parameters
available. How is it that the original querystring parameters are
available to the script on subsequent executions, and they aren't
available if you redirect to another script as opposed to redirecting
to itself?

If I:
print "Content-type:text/html\n\n";
print $q->redirect($pr);

The url with the querystring attached is printed as if it were a GET
request, even if the original was a POST. Provided $pr is null.
Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Mystery Bill McCarty Firefox 10 05-27-2005 04:35 AM
wifi mystery Txl Wireless Networking 4 03-25-2005 06:28 PM
Mystery frame below status bar [Xandros Bus 2/Firefox 1.0] John Bartley Firefox 1 03-23-2005 04:01 PM
Mystery # 2 Bill McCarty Firefox 5 01-02-2005 06:07 PM
Mystery Bill McCarty Firefox 5 12-31-2004 10:57 PM