Monks,
I have written several CGI programs to perform a variety of tasks, and every now and again this appears at the top of the page:
 HTTP/1.1 200 OK Date: Wed, 05 May 2004 09:08:27 GMT Server: Apache/1.3.6 (Unix) PHP/4.3.2 mod_perl/1.21 mod_ssl/2.2.8 OpenSSL/0.9.2b Keep-Alive: timeout=15, max=99 Connection: Keep-Alive Transfer-Encoding: chunked Content-Type: text/html  a26 ...along with sporadic alpha-numeric combinations throughout the rest of the content eg:
<td bgcolor="#dddddd">4</td> 23 <td bgcolor="#dddddd">Sysadmin</td> 1c <td bgcolor="#dddddd">3</td> 24 <td bgcolor="#dddddd">permanent</td> 28 <td bgcolor="#dddddd">1020343455</td> 5 </tr> 3f
Any ideas what this could be?
It occurs about 1% of the time and of course unpredictably ie: I could load the same page 100 times and maybe I'll get this weird result. It also doesn't appear to make any difference what the content is. It could just be a simple program to produce a frameset using the CGI module. It also never occurs locally on my ibook macosx, only on webservers.
Help/ideas appreciated.

traxlog

In reply to Why does my CGI script sometimes first show headers and then content? by Anonymous Monk

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.