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

gron URL doesn't use the proxy defined in environment #89

Open
bew opened this issue Sep 16, 2021 · 2 comments · May be fixed by #101
Open

gron URL doesn't use the proxy defined in environment #89

bew opened this issue Sep 16, 2021 · 2 comments · May be fixed by #101

Comments

@bew
Copy link

bew commented Sep 16, 2021

Hello!

I need to enable a proxy to contact the global internet, using the variables http_proxy https_proxy & no_proxy (they are described in https://curl.se/docs/manual.html#environment-variables and usually used in other programs as well)

When using gron URL it currently fails with an error while resolving the DNS or trying to contact a non-existant server on our local network.

Could you add this to gron? Thank you

In the meantime I can always download the file, and then gron it, so it's not high priority for me.

@akinet
Copy link

akinet commented Mar 1, 2022

Would it be also possible to add a "--proxy" option working as in curl?
And "--insecure" ?

@dotcs
Copy link

dotcs commented May 6, 2022

@akinet --insecure is already implemented since version 0.5.0:

gron/main.go

Line 64 in 13561bd

h += " -k, --insecure Disable certificate validation\n"

@dotcs dotcs linked a pull request May 8, 2022 that will close this issue
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

Successfully merging a pull request may close this issue.

3 participants