curl-easy icon indicating copy to clipboard operation
curl-easy copied to clipboard

using different proxy with each request

Open beshoo opened this issue 7 years ago • 0 comments

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?

beshoo avatar Nov 16 '18 22:11 beshoo