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

Proxy support? #98

Open
huglester opened this issue Feb 28, 2020 · 2 comments
Open

Proxy support? #98

huglester opened this issue Feb 28, 2020 · 2 comments

Comments

@huglester
Copy link

Hello

any plans for Proxy support?

@rbeuque74
Copy link
Member

Hello,
There is no plan for implementing proxy support as of now.

I will leave this issue open if someone want to pick this up.

@aurel26
Copy link

aurel26 commented Jun 5, 2021

It is possible to specify a Client class with a proxy:

require __DIR__ . '/vendor/autoload.php';
use \Ovh\Api;
use GuzzleHttp\Client;    // Required

$http_client = new Client([
   'timeout' => 30,
   'connect_timeout' =>5,
   'proxy' => 'tcp://a.b.c.d:3128'
]);

$conn = new Api($application_key, $application_secret, $api_endpoint, $consumer_key, $http_client);

See API constructor and GuzzleHttp\Client Documentation for more information

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

No branches or pull requests

3 participants