CURLOPT_NOPROXY does not affect in PHP

后端 未结 3 1823
挽巷
挽巷 2021-01-18 20:00

I have http_proxy settings in my /etc/environment on my Ubuntu machine. I have defined CURLOPT_NOPROXY as 10177 and then do

$curl = curl_init(\'http://127.0         


        
3条回答
  •  天命终不由人
    2021-01-18 20:46

    It happened with me so i set the proxy to empty string and it worked

    curl_setopt($ch, CURLOPT_PROXY, '');
    

提交回复
热议问题