Mystery Repost

B

bjh

....
my $q = new CGI;
....
my $pr = getNextPage();
....
print $q->redirect($pr);
exit;
....

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,579
Members
45,053
Latest member
BrodieSola

Latest Threads

Top