title: Verify if curl is using TLS
body: <p>In my PHP app I use PHP's CURL and openssl, to connect and talk using SOAP.
  Until now, remote server supported SSL and TLS but because of "poodle" bug, admin decided to disable SSL and use TLS only. 
  SSL is supported until the end of January.</p>
  
  <p>I changed my code by adding:</p>
  
  <pre><code>curl_setopt($objCurl, CURLOPT_SSLVERSION, CURL_SSLVERSION_TLSv1_2);
  </code></pre>
  
  <p>That in theory should force curl to use TLSv1.2. </p>
  
  <p>But that's theory - I need to verify that it actually uses TLS - is there any method for that?
  There is a method called curl_getinfo(), but info it returns is not useful for me:</p>
  
  <pre><code>[url] =&gt; https://www.example.com/soap/MessagingPort
  [content_type] =&gt; text/xml;charset=utf-8
  [http_code] =&gt; 200
  [header_size] =&gt; 293
  [request_size] =&gt; 882
  [filetime] =&gt; -1
  [ssl_verify_result] =&gt; 0
  [redirect_count] =&gt; 0
  [total_time] =&gt; 0.164487
  [namelookup_time] =&gt; 3.4E-5
  [connect_time] =&gt; 3.4E-5
  [pretransfer_time] =&gt; 0.000122
  [size_upload] =&gt; 604
  [size_download] =&gt; 178
  [speed_download] =&gt; 1082
  [speed_upload] =&gt; 3672
  [download_content_length] =&gt; 178
  [upload_content_length] =&gt; 604
  [starttransfer_time] =&gt; 0.164477
  [redirect_time] =&gt; 0
  </code></pre>
  
  <p>Big Thanks in advance</p>