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

Just a question: how may I tell "goth" library what proxy server it has to use? #515

Open
Bribon4 opened this issue Jul 12, 2023 · 0 comments

Comments

@Bribon4
Copy link

Bribon4 commented Jul 12, 2023

I know this is not an issue but a 'feature request' or a 'how to' question.
I have an issue I can not address when using this gorgeous library.

I guess I should have to configure something like this:
proxyUrl, err := url.Parse("http://proxyIp:proxyPort")
myClient := &http.Client{
Transport: &http.Transport{
Proxy: http.ProxyURL(proxyUrl),
},
}

I don't know how to embed something like that inside a call from "goth" to "Azure" (por example).
When using "goth" I have no access to the http.Client instance variable it uses, hence I can not do anything like that.

My request may sound weird but, at the CPD I am working on, I can not trust one single proxy server, so when the one I am pointing to does not respond I need to point to other, on the fly. And for doing so I need the brick I am requesting.

Thanks in advance.

@Bribon4 Bribon4 changed the title Just a question: how may I tell "goth" library that proxy server it has to use? Just a question: how may I tell "goth" library what proxy server it has to use? Jul 12, 2023
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

1 participant