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

Need to unset http proxy #1272

Open
abmmhasan opened this issue Dec 30, 2022 · 2 comments
Open

Need to unset http proxy #1272

abmmhasan opened this issue Dec 30, 2022 · 2 comments

Comments

@abmmhasan
Copy link

Summary of problem or feature request

While requesting I have to unset http proxy, but how to set it during build? I need to call this way.

Code snippet of problem

ClientBuilder::create()
                ->setHosts(["{$conf['host']}:{$conf['port']}"])
                ->build()

System details

  • RedHat
  • PHP 7.2
  • Client 7.17
  • Elasticsearch 7.16.3
@ezimuel
Copy link
Contributor

ezimuel commented Jan 30, 2023

@abmmhasan can you add more information on the issue? Thanks.

@abmmhasan
Copy link
Author

Well, before I call the above I have to do
putenv('http_proxy')
But this affects everything in that process. So, I wanna do that only for above, how can I do that?

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

2 participants