This one has me thoroughly stumped:
[Thu Jun 21 10:53:08 2001] [error] [client 192.168.0.1] Premature end +of script headers: d:/www/cgi-bin/view.cgi

I am writing a web-based search utility for one of our Win32 applications. The database it will be using is millions of rows in size, spanning 15 years of information. I took a small subset of that data and developed the search utility with it.

On the smaller dataset, the script works flawlessly. When I started using the larger database, the above mentioned error started occuring. I click a link on the results page to bring up detailed information about a document, which calls my view script with a certain set of parameters. If I want a more detailed view of part of that document, I click on a second link, which calls the same view script again, this time with slightly different parameters, only this time perl triggers an application error/doc watson/gpf type error.

Failing to believe that something suddenly cropped up with the code, I opened a command prompt and executed the same script with the same parameters as the browser. As expected, the script performed as intended.

I am using ActiveState Perl and Apache 1.3.19 on Windows 2000. My DBMS is (unfortunately) MS SQL Server 7.0, which I am accessing via the DBD::ODBC module.

Is it likely something in my code, Apache, my database, ActivePerl, or the interaction of Apache and the ODBC driver? I have not posted the code as it is quite long, but would be happy to provide it if it would be of assistance.

Any help or suggestions are greatly appreciated!

MrCromeDome


In reply to 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.