Legacy Dev Forum Posts

 View Only

Sign Up

Proxy support for Python SDK

  • 1.  Proxy support for Python SDK

    Posted 06-05-2025 18:08

    Poulain_Mathieu | 2018-04-18 02:29:29 UTC | #1

    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?


    Poulain_Mathieu | 2018-04-18 02:36:51 UTC | #2

    Seems like I can make it work with modifying the rest.py file:

    https pool manager

    self.pool_manager = urllib3.PoolManager(

    numpools=poolssize,

    certreqs=certreqs,

    cacerts=cacerts,

    certfile=certfile,

    keyfile=keyfile

    )

    self.poolmanager = urllib3.ProxyManager('http://myproxy:port', numpools=poolssize, certreqs=certreqs, cacerts=cacerts, certfile=certfile, keyfile=key_file )


    tim.smith | 2018-04-18 14:05:13 UTC | #3

    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.


    system | 2018-05-19 14:13:49 UTC | #4

    This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.


    This post was migrated from the old Developer Forum.

    ref: 2751