You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl@perl.apache.org by eric lin <fs...@centurytel.net> on 2002/12/22 07:40:56 UTC
web link broken when access cgi-bin
Dear mod_perl reader or user:
Is the other webiste's link to access mysite's file or photo(jpg),
not by hypertext but by cgi perl call(that function will show jpg pic)
<img src="http://www.mycomapny.com/cgi-bin/showphoto.pl">
but it turn out cannot access(I also try /usr/bin/perl
/usr/lib/cgi-bin/showphot.pl , it turn out is a dump kind's output,
then I > mytest.jpg
then at netscape 7 URL, I type /home/enduser/mytest.jpg
it showed:
The image "file:///home/enduser/mytest.jpg" cannot be displayed, because
it contains errors
) related to mod_perl did not configure or load well?(the locataion of
picture suppose to be showed redcrss in IE6, or square white in mozilla)
I am using apache 1.3.26 and perl 5.8
please help
--
Sincere Eric
www.linuxspice.com
linux pc for sale
Re: web link broken when access cgi-bin
Posted by Bill Moseley <mo...@hank.org>.
On Sun, 22 Dec 2002, Richard Clarke wrote:
> > And sent messages about using Windows to a Linux list, and CGI questions
> to
> > mod_perl list and seems to ignore the many requests to read some basic CGI
> > tutorials. I'd guess troll if he wasn't so clueless. ;)
>
> Since when did mod_perl becomes Linux only?
oops, I meant to write:
"And sent messages about using Windows to a Linux list"
--
Bill Moseley moseley@hank.org
Re: web link broken when access cgi-bin
Posted by Richard Clarke <ri...@likewhoa.com>.
> And sent messages about using Windows to a Linux list, and CGI questions
to
> mod_perl list and seems to ignore the many requests to read some basic CGI
> tutorials. I'd guess troll if he wasn't so clueless. ;)
Since when did mod_perl becomes Linux only?
Richard.
Re: web link broken when access cgi-bin
Posted by Bill Moseley <mo...@hank.org>.
On Sunday 22 December 2002 03:49, Ged Haywood wrote:
> Hi there,
>
> On Sat, 21 Dec 2002, eric lin wrote:
>
> > The image "file:///home/enduser/mytest.jpg" cannot be displayed, because
> > it contains errors
>
> I think I understand your question but I am not sure of it.
>
> It seems that you have sent a request to Apache, received a response,
And sent messages about using Windows to a Linux list, and CGI questions to
mod_perl list and seems to ignore the many requests to read some basic CGI
tutorials. I'd guess troll if he wasn't so clueless. ;)
Re: web link broken when access cgi-bin
Posted by Ged Haywood <ge...@www2.jubileegroup.co.uk>.
Hi there,
On Sat, 21 Dec 2002, eric lin wrote:
> The image "file:///home/enduser/mytest.jpg" cannot be displayed, because
> it contains errors
I think I understand your question but I am not sure of it.
It seems that you have sent a request to Apache, received a response,
and saved the response to a file in the hope that it was an image.
When you used Netscape to try to view the image it failed to appear.
It seems unlikely that anything there did what you thought, you will
need to find out what is happening by thinking about it and testing.
One way to test what you get from Apache is to use 'telnet' to make
the requests. It's documented in the mod_perl Guide which is at
http://perl.apache.org/docs/1.0/guide
Normally when you want to send an image file to the client you don't
use mod_perl to do it. Either mod_perl never gets involved (because
of the Apache configuration in httpd.conf) or you tell mod_perl to let
Apache send the file for you (the mod_perl handler can return DECLINED
to Apache when it sees the request).
> I am using apache 1.3.26 and perl 5.8
We need more information than this. Please read the documentation
about getting help which you will find in the mod_perl source tree in
a file called SUPPORT and also in the mod_perl Guide.
There is a lot of reading to do. Unfortunately it is almost all in
English and unfortunately your English is not good, so you will need
to work hard at it. Try to make your questions clearer. If you have
a friend who speaks better English, let him see the questions first.
If I have not understood your question please try again. :)
73,
Ged.