- Issue created by @fabrer
- 🇫🇷France fabrer Aix-en-provence
Update: I revert to use Guzzle calls instead of http_client_manager. However I'm still interested in any answer/help for my next projects.
Regards,
- Assigned to aronne
- 🇮🇹Italy aronne
Hi @fabrer,
for you to use proxy when using HTTP Client Manager, all you need to do is just to configure your client in this way:beh_services.httpbin: title: "[Services] Httpbin" api_path: "/src/api/httpbin.yml" config: base_uri: "https://httpbin.org" proxy: http: 'https://<user>:<password>@<location>:<port>'' https: 'https://<user>:<password>@<location>:<port>' no: ['127.0.0.1', 'localhost']
And that's it, you're good to go. If you have multiple clients sharing the same proxy configurations, you can create a master client and then extend it. You can find a tutorial on how to do it by looking at the module documentation.
I tried it by myself:
Hope it helps.
Kind regards,
aronne - Status changed to Closed: works as designed
6 months ago 2:07pm 24 May 2024