Can you display other .png files? (There's one here.) Keep in mind nothing at all can be printed to stdout before the Content-type line.

lynx -mime_header -source -dump http://www.server.com/graph.cgi | less should look like:

HTTP/1.1 200 OK Date: Wed, 11 Aug 2004 17:25:39 GMT Server: Apache/1.3.31 (Unix) mod_fastcgi/2.4.2 Last-Modified: Sat, 05 Jun 2004 08:20:37 GMT ETag: "2501b-13d6-40c18255" Accept-Ranges: bytes Content-Length: 5078 Connection: close Content-Type: image/png <89>PNG...gibberish...

Important items to note are 1) the complete lack of HTML anywhere in the result, 2) "Content-Type: image/png", 3) no blank lines at any point before "Content-Type: image/png", and 4) the text "<89>PNG" or similar immediately following the blank line followed by lots of gibberish. If your output is deviating from this, what do you see?


In reply to Re: Getting the picture by ikegami
in thread Getting the picture by bret.foreman

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.