fullstorydev / grpcurl

Like cURL, but for gRPC: Command-line tool for interacting with gRPC servers
MIT License
10.75k stars 502 forks source link

feature request: allow both plaintext and TLS connections #307

Open torkelrogstad opened 2 years ago

torkelrogstad commented 2 years ago

I switch between calling out to a few different gRPC services all the time. Some of these live locally, and some of them live remotely. Some of them operate in plaintext, and some of them use TLS. I constantly get error messages, because I forgot to either add or omit -plaintext. I'd love a feature (either enabled by default or behind a flag/environment variable), where grpcurl tolerates both TLS and plaintext - i.e. automatically chooses the right protocol based on the response from the server.

If this is a desired feature, I'd be happy to take a stab at coding it up.