Do you know where your variables are? | |
PerlMonks |
Re^4: I am having problems with both redirection and detecting redirectionby ted.byers (Monk) |
on Sep 27, 2012 at 18:56 UTC ( [id://996064]=note: print w/replies, xml ) | Need Help?? |
Thanks. That looks liek what I would do if I am generating the redirection myself, and handling it directly in my script rather than passing it on to the client. However, why don't I just use the following: print $response->as_string;For my test cgi script, and using my client scriptlet, that gives me the following:
If I get a redirection, the only thing I ought to do in this use case is pass it on to whatever client sent a request to my CGI script, and it looks like "print $response->as_string;" will do that: request parameters and all. It is true I need to store some data in this eventuality, but that is just an extra function call inside the conditional block that checks to see whether or not the response code is between 300 and 399 inclusive., That, and not allowing my code to follow redirections, ought to suffice. Is there any reason to expect that to break? Thanks again. Ted
In Section
Seekers of Perl Wisdom
|
|