469,951 Members | 2,622 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,951 developers. It's quick & easy.

Mystery Repost

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.
Jul 19 '05 #1
0 1239

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

3 posts views Thread by Red | last post: by
12 posts views Thread by Raymond Hettinger | last post: by
reply views Thread by William Wisnieski | last post: by
115 posts views Thread by Mark Shelor | last post: by
3 posts views Thread by Adam | last post: by
14 posts views Thread by Steve McLellan | last post: by
5 posts views Thread by Adrian Parker | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.