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 [EMAIL PROTECTED]
 

Reply via email to