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' ),$html

this code runs as is on 50+ Apache & IIS servers

g_White

In reply to AIX I-Planet and CGI Headers by gwhite

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.