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 configuration with grpcurl #221

Closed
puneetsar opened this issue Mar 17, 2021 · 2 comments
Closed

Proxy configuration with grpcurl #221

puneetsar opened this issue Mar 17, 2021 · 2 comments

Comments

@puneetsar
Copy link

Our environment has a forward proxy, and we need equivalent of this curl option in grpcurl:

curl http://example.com --proxy 127.0.0.1:8080

Is it possible?

@jhump
Copy link
Contributor

jhump commented Mar 31, 2021

It looks like the Go runtime for gRPC, which is what grpcurl uses under its hood, supports environment variables in a similar fashion as curl and python: HTTP_PROXY, HTTPS_PROXY, and NO_PROXY can inform the program how to route a request through a proxy.

So I think the following would work. Please try it out:

HTTP_PROXY=127.0.0.1:8080 grpcurl ...

@jhump
Copy link
Contributor

jhump commented Mar 31, 2021

Closing this issue because it is a duplicate of #166

@jhump jhump closed this as completed Mar 31, 2021
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