Python の suds で proxy を設定する方法
Python の SOAP クライアントの suds でネットワークの環境で proxy を超える必要がある場合は以下のように書く。
# -*- coding: utf-8 -*- from suds.client import Client wsdl = 'http://example.com/service/foo?wsdl' client = Client(wsdl, dict(http='http://proxy:8080'))
これで超えられる。
Infrastructure/Fedorahosted-retirement - Fedora Project Wiki
でもこれ
$ export http_proxy=http://proxy:8080
とか設定してたら一律 Client には Proxy が設定できてる方が嬉しいんだけどなぁ。