You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl@perl.apache.org by Prasit P <pr...@yahoo.com> on 2000/05/25 18:01:56 UTC
GET html page - permission denied
Hi guys,
I've built Apache 1.3.12 with mod_perl 1.21.
I would get permission denied message, if I use this perl script.
$remote = IO::Socket::INET->new( Proto => "tcp",
PeerAddr => 209.10.98.1,
PeerPort => 80,
);
print $remote "GET http://209.10.98.1/index.html HTTP/1.0\n\n";
However, the script would work fine if I use either one of these workarounds:
1. Change "print" line to
print $remote "GET index.html HTTP/1.0\n\n";
2. Remove the line, "Addmodule mod_perl.c", from httpd.conf (that's mean I
can't don't use mod_perl in the Apache)
Unfortunately, I need both mod_perl & my original script to work without the
error. Anybody know the solution, please help.
Regards,
Prasit
=====
============================================================
"God is REAL ...
unless previously declared as an INTEGER."
- anonymous
============================================================
__________________________________________________
Do You Yahoo!?
Kick off your party with Yahoo! Invites.
http://invites.yahoo.com/
Re: GET html page - permission denied
Posted by Doug MacEachern <do...@covalent.net>.
On Thu, 25 May 2000, ___cliff rayman___ wrote:
> > PeerAddr => 209.10.98.1,
> > print $remote "GET http://209.10.98.1/index.html HTTP/1.0\n\n";
> your answer #1 is correct.
> you have already connected to 209.10.98.1 via http protocol.
but since both are to the same address, it should work fine, which is what
the 1.22 fix i mentioned deals with.
Re: GET html page - permission denied
Posted by ___cliff rayman___ <cl...@genwax.com>.
Prasit P wrote:
> Hi guys,
>
> I've built Apache 1.3.12 with mod_perl 1.21.
>
> I would get permission denied message, if I use this perl script.
>
> $remote = IO::Socket::INET->new( Proto => "tcp",
> PeerAddr => 209.10.98.1,
> PeerPort => 80,
> );
> print $remote "GET http://209.10.98.1/index.html HTTP/1.0\n\n";
>
> However, the script would work fine if I use either one of these workarounds:
>
> 1. Change "print" line to
>
> print $remote "GET index.html HTTP/1.0\n\n";
>
your answer #1 is correct.
you have already connected to 209.10.98.1 via http protocol.
--
___cliff rayman___www.genwax.com___cliff@genwax.com___
Re: GET html page - permission denied
Posted by Doug MacEachern <do...@covalent.net>.
On Thu, 25 May 2000, Prasit P wrote:
> Hi guys,
>
> I've built Apache 1.3.12 with mod_perl 1.21.
try upgrading mod_perl, 1.22 has this change:
=item 1.22 - March 22, 2000
proxy support fixed wrt RFC2068, thanks to Benjamin Elijah
Griffin for the spot