Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine

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

by census (Initiate)
on Mar 21, 2013 at 18:19 UTC ( #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("");

I am receiving the error message: Error GETing 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: "" with a port of 9150. I am using ActivePerl 5.16.2; Vadalia 0.2.21 and Tor 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?

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://1024796]
Approved by moritz
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (8)
As of 2017-04-24 20:39 GMT
Find Nodes?
    Voting Booth?
    I'm a fool:

    Results (445 votes). Check out past polls.