Python-zeep: proxy?

Created on 14 Jun 2016  路  3Comments  路  Source: mvantellingen/python-zeep

Hello

Is there an easy way to provide a proxy to use?

Thanks

docs

Most helpful comment

Another perhaps easier way is to set client.transport.session.proxies = {}. See http://docs.python-requests.org/en/master/api/#requests.Session.proxies

All 3 comments

Because python-zeep uses requests as Transport layer, it is possible. But right now it does not support proxy out of the box, you can inherit Transport class and reimplement create_session method in order to provide proxy payload.

Another perhaps easier way is to set client.transport.session.proxies = {}. See http://docs.python-requests.org/en/master/api/#requests.Session.proxies

Thanks guys. I used @mvantellingen way and it worked.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

grguthrie picture grguthrie  路  4Comments

majackson picture majackson  路  6Comments

alexfx picture alexfx  路  4Comments

allan-simon picture allan-simon  路  4Comments

pope1ni picture pope1ni  路  4Comments