title: HTTPS Request with Perl UserAgent
body: <p>I am trying to request an html document with HTTPS authentication using Perl.  I haven't had an issue with non-HTTPS code in the past.  I'm currently using LWP::UserAgent: </p>
  
  <pre><code>#! /usr/bin/perl
  use LWP;
  use HTTP::Request::Common;
  
  my $browser = LWP::UserAgent-&gt;new;
  my $baseurl = "https://xyz.url.com/directory";
  
  my $ua = LWP::UserAgent-&gt;new(keep_alive=&gt;1);
  $ua-&gt;cookie_jar({});
  $ua-&gt;credentials('xyz.url.com:80', '', 'login', 'password');
  
  my $response = $ua-&gt;get($baseurl);
  print  $response-&gt;content();
  </code></pre>
  
  <p>The response that is printed is essentially the '401 Unauthorized' page.  I am able to login via the browser.  The browser uses a pop-up that reads 'Authentication Required -- The server xyz.url.com:80 requires a username and password.  The server says: Blah Blah'  I have read many posts instructing to install things like <code>Crypt::SSLeay</code> and <code>LWP::Protocol::https</code>.  These are installed.  I'm stumped.<br></p>
  
  <p>I've also downloaded a program called Charles to see if there is anything of note with the request/response, however I'm not really sure where to look.  I've tried adding 'Blah Blah' for the realm, but this wasn't successful.  Can the realm be identified using Charles?  </p>