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

Support for setting proxies in http requests #10

Open
arthurzenika opened this issue Jan 18, 2023 · 0 comments
Open

Support for setting proxies in http requests #10

arthurzenika opened this issue Jan 18, 2023 · 0 comments

Comments

@arthurzenika
Copy link

I am using netapp-ocum python binding to access netapp via a proxy, it would be nice to be able to configure this when creating the client.

The impacted code would be in https://github.com/powerhome/python-netapp-ocum/blob/master/netapp_ocum/http.py#L17-L24

Here is the documentation for use of proxies in python-requests https://docs.python-requests.org/en/latest/user/advanced/?highlight=proxies#proxies In my specific case I use a socks5 proxy as instructed in https://docs.python-requests.org/en/latest/user/advanced/?highlight=proxies#socks

(My current workaround is to monkeypatch NetApp_OCUM_HTTP._GET_worker = patched_GET_worker but I'd like to avoid 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

1 participant