title: PHP cURL request using proxy with different protocols
body: <p>If i have 2 proxies:</p>
  
  <p><code>$proxy1 = array('http', 'XXX.XXX.XXX.XXX','8080')</code> and <code>$proxy2 = array('https','YYY.YYY.YYY.YYY','80')</code></p>
  
  <p>And I'm requesting:
  <code>$url1="http://somesite-1.net"</code> and <code>$url2="https://somesite-2.net"</code></p>
  
  <p>Code to init multi curl:</p>
  
  <pre><code>foreach ($urls as $url) {
              // threads
              $ch = curl_init($url); 
              curl_setopt($ch, CURLOPT_AUTOREFERER, $_autoreferrer);
              curl_setopt($ch, CURLOPT_FOLLOWLOCATION, $_follow_loc);  
              curl_setopt($ch, CURLOPT_MAXREDIRS, $_max_redirects); 
              curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);    
              curl_setopt($ch, CURLOPT_HEADER, 0);                
  
              curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, $_connection_timeout);                   curl_setopt($ch, CURLOPT_TIMEOUT, $_curl_timeout);  
              curl_setopt($ch, CURLOPT_RETURNTRANSFER,    true);
              curl_setopt($ch, CURLINFO_HTTP_CODE,        true);
              curl_setopt($ch, CURLOPT_PROXY,         $this-&gt;conf-&gt;getProxyIP().":".$this-&gt;conf-&gt;getProxyPort());     //PROXY       
              curl_setopt($ch, CURLOPT_USERAGENT,     $this-&gt;conf-&gt;getUserAgent());                                   
              if($referrer = $this-&gt;conf-&gt;getReferrer() !== false){                                                   //REFERRER
                  curl_setopt($ch, CURLOPT_REFERER, $referrer);
              }
  
  
  
              $tasks[$url] = $ch;
  
              curl_multi_add_handle($cmh, $ch);
          }
  </code></pre>
  
  <p>Do I need to set proxy protocol http or https to send request?
  Because when I'm, checking proxy using sockets - I get message that all ok and proxy is working. But when I'm requesting content using cURL - I get content not from all proxies. I think that the problem is with not setted proxy protocol. I think that I need to set some option in cURL, but don't know what exactly.</p>