Hi, I`m using below code to connect to website. I want to connect to this site through the proxy server (I got servers with and some servers without authentification).
Please help.
Please help.
Code:
use IO::Socket;
$Mhost="[URL unfurl="true"]www.google.com";[/URL]
$Msock = new IO::Socket::INET(PeerAddr => $Mhost, PeerPort => 80, Proto => 'tcp',Timeout=>60);
$MURL="GET [URL unfurl="true"]http://www.google.com[/URL] HTTP/1.0\n\n";
print $Msock "$MURL";
while($line = <$Msock>) {$buf.=$line;}
print $buf;