Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

using different proxy with each request #39

Open
beshoo opened this issue Nov 16, 2018 · 0 comments
Open

using different proxy with each request #39

beshoo opened this issue Nov 16, 2018 · 0 comments

Comments

@beshoo
Copy link

beshoo commented Nov 16, 2018

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant