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.
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.