[FASTCGI] fastcgi/apache/perl image file displaying issue

Joe neverchicken at gmail.com
Wed Sep 22 16:09:58 EDT 2010

Hi, all, new to fastcgi and have a lot of question to ask. I tried to search
on web but out of luck so far.
I write a fcgi Perl script as below:

use strict;
use FCGI;

while (FCGI::accept >= 0) {
    print "Content-type: text/html\r\n\r\n";
    print "<head>\n<title>FastCGI Demo Page (perl)</title>\n</head>\n";
    print "<h1>FastCGI Demo Page (perl)</h1>\n";
    print "This is coming from a FastCGI server.\n<BR>\n";
    print '<img src="hello.jpg" border="0">';
    print "\n";

It does not display the image for me. If I remove FCGI loop and only run
this script as normal cgi script, I can see the image. Where did I go wrong
here? or am I missing some thing in server configuration. Many thanks to you
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.pins.net/mailman/private.cgi/fastcgi-developers/attachments/20100922/071e900f/attachment.html>

More information about the FastCGI-developers mailing list