Open benoitrambaud opened 8 months ago
Hi,
For those who need to make Mautic API calls behind a proxy server, here is a code update for the AbstractAuth class. This simply adds support for the Curl CURLOPT_PROXY option.
(see mautic.zip)
Usage :
$initAuth = new ApiAuth(); $auth = $initAuth->newAuth($settings); $auth->setCurlProxyUrl("https://myproxy.net:8888");
$initAuth = new ApiAuth();
$auth = $initAuth->newAuth($settings);
$auth->setCurlProxyUrl("https://myproxy.net:8888");
+++ Benoit
Hi,
For those who need to make Mautic API calls behind a proxy server, here is a code update for the AbstractAuth class. This simply adds support for the Curl CURLOPT_PROXY option.
(see mautic.zip)
Usage :
$initAuth = new ApiAuth();
$auth = $initAuth->newAuth($settings);
$auth->setCurlProxyUrl("https://myproxy.net:8888");
+++ Benoit