title: Why might Perl allow for http websites using TOR but not https?
body: <p>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.  </p>
  
  <pre><code>#!/usr/bin/perl
  use strict;
  
  use WWW::Mechanize;
  use LWP::Protocol::socks;
  use LWP::Protocol::https;
  use utf8;
  
  my $mech = WWW::Mechanize-&gt;new(timeout =&gt; 60*5);
  $mech-&gt;proxy(['http', 'https'], 'socks://localhost:9150');
  $mech-&gt;get("https://www.google.com");
  </code></pre>
  
  <p>I am receiving the error message: Error GETing <a href="https://www.google.com">https://www.google.com</a>: Status read failed: Bad file descriptor at line 10," where line i10 is the last line of the program.</p>
  
  <p>In the TOR browser, I can successfully view: "<a href="https://www.google.com">https://www.google.com</a>" 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.  </p>
  
  <p>I have tried installing packages with the commands:</p>
  
  <pre><code>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
  </code></pre>
  
  <p>Thank you for any help!  Please let me know whether there is any further information that I can provide.</p>