Does the Python SDK support http/https proxy with authentication for requests?
It seems that it doesn't. Any way to make it work behind a proxy?
Seems like I can make it work with modifying the rest.py file:
# https pool manager
# self.pool_manager = urllib3.PoolManager(
# num_pools=pools_size,
# cert_reqs=cert_reqs,
# ca_certs=ca_certs,
# cert_file=cert_file,
# key_file=key_file
# )
self.pool_manager = urllib3.ProxyManager('http://myproxy:port',
num_pools=pools_size,
cert_reqs=cert_reqs,
ca_certs=ca_certs,
cert_file=cert_file,
key_file=key_file
)
I've opened API-3333 to add proxy support. As far as I'm aware, the way you've done it is the only way currently.
This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.