Skip to content
This repository has been archived by the owner on Jun 24, 2024. It is now read-only.

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 subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant