|
|
| "be consistent" | |
| PerlMonks |
AIX I-Planet and CGI Headersby gwhite (Friar) |
| on May 11, 2005 at 11:31 UTC ( [id://456035]=perlquestion: print w/replies, xml ) | Need Help?? |
This is an archived low-energy page for bots and other anonmyous visitors. Please sign up if you are a human and want to interact.gwhite has asked for the wisdom of the Perl Monks concerning the following question: My client has an AIX I-Planet server. I have a couple of CGI applications I have installed and am trying to get to perform predictably. In the first CGI script I output a simple form for data collection, using the modules CGI and Text::Template and the form displays fine. Upon submitting the form (via post) a second script, also using CGI and Text::Template does a couple of calculations and returns the results. Except I-Planet is producing a set of headers prior to my CGI output. So you get the rendered HTML preceeded by the header produced by CGI. When I take out the header producing code everything renders properly, except the CGI header was setting a cookie and setting the expires parameter. I have tried using -nph=>1 in the header statement and removing it. From this second form I have another CGI that can be executed, (this time with a get), that does not set any header flags, but fails in the same way as the second form. So I can type in a cgi url and it works, but every CGI called as either the result of a submit or a link fails with this header issue. My other application is much larger and complex and before moving onto it, I need to get this resolved. This definitely could be an AIX I-Planet configuration issue, but my guess is that there may be a monk who has run into this very thing and has a clever solution. thanks for any insight... before you ask what the code looks like print $output->header(-cookie=>$cookie, -expires=>'now' ),$htmlthis code runs as is on 50+ Apache & IIS servers
g_White
Back to
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||||||||||||||||