CGI.pm and ModPerl::Registry
- From: steve.yost@xxxxxxxxx
- Date: Fri, 21 Dec 2007 20:20:25 -0800 (PST)
My site has been humming along in blissful ignorance of the latest
Perl happenings for several years, running Perl 5.6.0, Apache 1.3, and
whatever version of mod_perl was current. I use CGI.pm to do request
parsing and response output, because the whole site used to be
<shudder> CGI scripts.
I'm in the process of upgrading to Perl 5.8.8, Apache 2.0, and
ModPerl::Registry, and CGI.pm v3.29.
Right now, all the redirects I do that follow POSTs are broken. They
produce status 200 instead of status 303 that I coded for. Any ideas
why or other advice?
Thanks very much.
Here's a stripped down bit of sample code:
my @headerargs = ('-cookie', $my_cookie) if $my_cookie;
my @redirargs =
('-Status', '303 See Other',
'-Location', $forward_url,
'-URL', $forward_url);
push (@headerargs, @redirargs);
print $cgi->header(@headerargs);
# print some text ...
exit();
-Steve
.
- Follow-Ups:
- Re: CGI.pm and ModPerl::Registry
- From: Claudio Calvelli
- Re: CGI.pm and ModPerl::Registry
- Prev by Date: Re: Is there a better way to reset CGI object for AJAX POSTDATA?
- Next by Date: Re: CGI.pm and ModPerl::Registry
- Previous by thread: Is there a better way to reset CGI object for AJAX POSTDATA?
- Next by thread: Re: CGI.pm and ModPerl::Registry
- Index(es):
Relevant Pages
|
|