Skip to content

using different proxy with each request #39

@beshoo

Description

@beshoo

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions