Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Why might Perl allow for http websites using TOR but not https?

by census (Initiate)
on Mar 21, 2013 at 18:19 UTC ( [id://1024796]=perlquestion: print w/replies, xml ) Need Help??

census has asked for the wisdom of the Perl Monks concerning the following question:

I am having difficulty using perl to visit a website via TOR if it is an https site but not if it is 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(); $mech->proxy(['http', 'https'], 'socks://localhost:9150'); $mech->get("https://www.google.com");

I am receiving the error message: Error GETing https://www.google.com: Status read failed: Bad file descriptor at 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 a port of 9150. I am using ActivePerl 5.16.2; Vadalia 0.2.21 and Tor 0.2.3.25. I have a Windows machine and my primary internet browser is Mozilla.

I have tried installing packages with 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

Replies are listed 'Best First'.
Re: Why might Perl allow for http websites using TOR but not https?
by moritz (Cardinal) on Mar 21, 2013 at 18:23 UTC
      Do you mean you want to know if any of those packages installed successfully onto my computer? I believe all or most did. I can double check if that is your question. I had just wanted to be clear on solutions that I had tried.
        Your statement that you "believe all or most" installed properly is WAAAAAY short of a definitive answer. If any failed, that failure might be the cause of your problem. So check, and check back with a complete answer.

        If you didn't program your executable by toggling in binary, it wasn't really programming!

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://1024796]
Approved by moritz
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others exploiting the Monastery: (2)
As of 2024-03-19 06:11 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found