CodeIgniter Forums
Curlopt_proxy support - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: CodeIgniter 4 (https://forum.codeigniter.com/forumdisplay.php?fid=28)
+--- Forum: CodeIgniter 4 Feature Requests (https://forum.codeigniter.com/forumdisplay.php?fid=29)
+--- Thread: Curlopt_proxy support (/showthread.php?tid=76974)



Curlopt_proxy support - jjinkou2 - 07-09-2020

Hello
i would like to use the culr codeigniter4 library and set the proxy.

i added this line inside the system/curlRequest.php under the function setCurlOption for my code to work .
Code:
$curl_options[CURLOPT_PROXY] = array_key_exists('proxy', $config) ? $config['proxy'] : '';

please could you add something to handle the curlopt_proxy?

thank you.


RE: Curlopt_proxy support - MGatner - 07-14-2020

We had one attempted PR but it needed reworking and the author went missing: https://github.com/codeigniter4/CodeIgniter4/pull/2424

If you’d like to use that info to make an attempt at a PR I think this would be a good addition.