what is the meaning of this code

Posted by spific on Stack Overflow See other posts from Stack Overflow or by spific
Published on 2010-05-11T12:08:23Z Indexed on 2010/05/11 12:14 UTC
Read the original article Hit count: 242

Filed under:
|
|

i have this code :

use strict;
 use LWP::UserAgent;
use warnings;
 my $ua = new LWP::UserAgent(agent => 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.0.5) Gecko/20060719 Firefox/1.5.0.5');
 $ua->proxy([qw(http https)] => 'http://59.39.92.148:1080');
 my $response = $ua->get("http://www.google.com");
 print $response->code,' ', $response->message,"\n";

is the mean of code " open www.google.com with sock proxy"? pls explain for me .

© Stack Overflow or respective owner

Related posts about socket

Related posts about perl