Re: fastcgi/apache/perl image file displaying issue
Joe <[email protected]> Thu, 23 Sep 2010 10:10:06 -0500
| Newsgroups | gmane.comp.web.fastcgi.devel |
|---|---|
| Message-ID | <[email protected]> |
Thank you, Jay. I can see all the text, but with a broken image. Log is below: [Thu Sep 23 09:57:38 2010] [error] [client 127.0.0.1] (OS 109)The pipe has been ended. : FastCGI: comm with server "C:/.../hello.jpg" aborted: GetOverlappedResult() failed, referer: http://localhost/hello.fcgi [Thu Sep 23 09:57:38 2010] [error] [client 127.0.0.1] FastCGI: incomplete headers (0 bytes) received from server "C:....../hello.jpg", referer: http://localhost/hello.fcgi If I directly point url to http://127.0.0.1/hello.jpg I got 'Internal Server Error' page and the log is: [Thu Sep 23 10:06:05 2010] [error] [client 127.0.0.1] (OS 2)The system cannot find the file specified. : FastCGI: failed to connect to server "C:/.../fcgi-bin/hello.jpg": CreateFile()/WaitNamedPipe() timed out [Thu Sep 23 10:06:05 2010] [error] [client 127.0.0.1] FastCGI: incomplete headers (0 bytes) received from server "C:/..../fcgi-bin/hello.jpg" Joey On Wed, Sep 22, 2010 at 3:34 PM, Jay Sprenkle <[email protected]> wrote: > Do you see "This is coming from a FastCGI server." ? > If you do and see a "broken image" you might put in a full URL for the > image: > > print '<img src="http://myserver.com/hello.jpg" border="0">'; > > > On Wed, Sep 22, 2010 at 3:09 PM, Joe <[email protected]> wrote: > >> 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: >> >> #!c:/perl/bin/perl.exe >> 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. >> >> > > _______________________________________________ FastCGI-developers mailing list FastCGI-developers-xGejAJT2w6xVgU18Zptdi0EOCMrvLtNR@public.gmane.org http://mailman.pins.net/mailman/listinfo.cgi/fastcgi-developers