title: how to make https request using php Http_Request2()
body: <p>i want to make a https request using pear http_request2($url) class.
  i am able to make http request but not https. and the website facilitate both http and https. No prob with server responding to https.</p>
  
  <pre><code>    require 'HTTP/Request2.php';
      $url = 'https://collegedb2.ferryfair.com';
      $r = new Http_Request2($url);
      $r-&gt;setMethod(HTTP_Request2::METHOD_POST);
      try {
          $response = $r-&gt;send();
      } catch (Exception $exc) {
          $es = $exc-&gt;getTraceAsString();
          $ets=$exc-&gt;__toString();
          $egc=$exc-&gt;getCode();
          $egl=$exc-&gt;getLine();
          $egm=$exc-&gt;getMessage();
          $egt=$exc-&gt;getTrace();
          $response = null;
      }
      $page = $response-&gt;getBody();
      echo $page;
  </code></pre>
  
  <p>this is the error msg:</p>
  
  <blockquote>
    <p><code>$egm=(string) Unable to connect to ssl://collegedb2.ferryfair.com:443. Error: stream_socket_client(): unable to connect to ssl://collegedb2.ferryfair.com:443 (Unknown error)</code></p>
  </blockquote>