seveas / python-hpilo

Accessing the HP iLO XML interface from python
https://seveas.github.io/python-hpilo
Other
321 stars 102 forks source link

[feature] Add ability to connect to ILO over HTTPS proxy #262

Open sourcecodemage opened 3 years ago

sourcecodemage commented 3 years ago

Use case: I manage ILO's for multiple business partners, and we've had them set up proxies to make accessing parts of their internal network, including HP ILO's from from our network, easier.

I looked at the source code for hpilo.py and dependencies, and I didn't see support for using a proxy connection. I only went as far as socket.py

I'm proposing something like the way the requests module supports proxy, by defining a proxy dictionary. Details here - https://2.python-requests.org/en/master/user/advanced/#proxies.