PHP Classes

how to force using curl with curl_setop (proxy)?

Recommend this page to a friend!

      PHP HTTP protocol client  >  All threads  >  how to force using curl with...  >  (Un) Subscribe thread alerts  
Subject:how to force using curl with...
Summary:var $use_curl=1;
Messages:3
Author:allenmao
Date:2015-04-29 03:06:43
 

  1. how to force using curl with...   Reply   Report abuse  
Picture of allenmao allenmao - 2015-04-29 03:06:43
how to set up forcing using curl in http.php?

var $use_curl=1;

?

  2. Re: how to force using curl with...   Reply   Report abuse  
Picture of Manuel Lemos Manuel Lemos - 2015-04-29 03:26:59 - In reply to message 1 from allenmao
You need to set to use the prefer_curl variable, but the class cannot use Curl when you use a proxy.

  3. Re: how to force using curl with...   Reply   Report abuse  
Picture of allenmao allenmao - 2015-04-29 03:33:35 - In reply to message 2 from Manuel Lemos
its working now.!!!

technical term, modify http.php

leave $proxy_host_name (empty) and $proxy_host_port (unchanged)

set $protocol= "https";
set $prefer_curl = 1;

thanks bro.!!