I find it difficult to use perl to visit a website via TOR if it is an https site but not an http site.
#!/usr/bin/perl use strict; use WWW::Mechanize; use LWP::Protocol::socks; use LWP::Protocol::https; use utf8; my $mech = WWW::Mechanize->new(timeout => 60*5); $mech->proxy(['http', 'https'], 'socks://localhost:9150'); $mech->get("https://www.google.com");
I get the error message: GETing error https://www.google.com : Status reading error: file file descriptor on line 10 ", where line i10 is the last line of the program.
In the TOR browser, I can successfully view: " https://www.google.com " with port 9150. I am using ActivePerl 5.16.2; Wadalia 0.2.21 and Tor 0.2.3.25. I have a Windows machine and my main internet browser is Mozilla.
I tried to install packages using the commands:
cpan LWP::UserAgent ppm install LWP::Protocol::https cpan LWP::Protocol::https ppm install LWP::Protocol::socks cpan LWP::Protocol::socks ppm install Mozilla::CA ppm install IO::Socket::SSL ppm install Crypt::SSLeay cpan Crypt::SSLeay
Thanks for any help! Please let me know if there is any additional information that I can provide.
source share