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
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: AIX I-Planet and CGI Headers
by dragonchild (Archbishop) on May 11, 2005 at 15:39 UTC | |
|
Re: AIX I-Planet and CGI Headers
by jhourcle (Prior) on May 11, 2005 at 15:47 UTC | |
by gwhite (Friar) on May 11, 2005 at 17:41 UTC | |
by jhourcle (Prior) on May 11, 2005 at 19:11 UTC | |
by dragonchild (Archbishop) on May 11, 2005 at 17:43 UTC | |
by gwhite (Friar) on May 11, 2005 at 18:13 UTC |