Skip to content

Instantly share code, notes, and snippets.

View cji's full-sized avatar

Craig Ingram cji

View GitHub Profile
@cji
cji / gist:3722035
Created September 14, 2012 13:51 — forked from rbarrois/gist:3721801
Well behaving HTTP transport for suds
from suds.transport.http import HttpTransport as SudsHttpTransport
class WellBehavedHttpTransport(SudsHttpTransport):
"""HttpTransport which properly obeys the ``*_proxy`` environment variables."""
def u2handlers(self):
"""Return a list of specific handlers to add.
The urllib2 logic regarding ``build_opener(*handlers)`` is: