Please don't take this as me being rude. I think I didn't explain myself well enough.

If I were missing a header altogether though, wouldn't I get a malformed header error, not a premature end of header?

I have a line in my code that prints print "Content-Type: text/html\n\n"; before anything else. What has me confused is why the script runs in the browser with some parameters but not with others when the only thing I changed is the database I was using.

Regardless of the parameters passed, the script runs fine from the command prompt. The header info produced in that manner looked ok to me too. I believe that the problem has nothing to do with the actual header. . . I think that perl dying in that manner is producing the header problems.

Still stumped,
MrCromeDome


In reply to Re: Re: Premature end of script headers? by MrCromeDome
in thread Premature end of script headers? by MrCromeDome

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.