CURLOPT_NOPROXY does not affect in PHP

后端 未结 3 1799
挽巷
挽巷 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:49

    According to PHP's Manual, you should set CURLOPT_HTTPPROXYTUNNEL to false:

    curl_setopt($ch, CURLOPT_HTTPPROXYTUNNEL, false);
    

提交回复
热议问题