Hello,
I want my Perl script to connect through the tor proxy which runs on my localhost on port 9050, so I wrote:
- require LWP::UserAgent;
-
my $ua = LWP::UserAgent->new;
-
-
$ua->timeout(10);
-
-
-
$ua->proxy(['http'], 'localhost:9050');
-
-
-
my $response = $ua->get('http://www.ip-adress.com/');
-
-
print $response->content;
But I have this error message:
- 501 Protocol scheme 'localhost' is not supported
thnx to help a newbie