curl-easy
curl-easy copied to clipboard
using different proxy with each request
Dear All , I know that I can set the proxy with
$queue = new \cURL\RequestsQueue;
$queue
->getDefaultOptions()
->set(CURLOPT_RETURNTRANSFER, true)
->set(CURLOPT_PROXY, $proxy)
->set(CURLOPT_FRESH_CONNECT,true);
But this queue setting will be used with each request. I need to use a different proxy with each request, how can I setup such?