Skip to content

Instantly share code, notes, and snippets.

View shredder12's full-sized avatar

Shashank Sahni shredder12

  • ThousandEyes Inc.
  • San Francisco, CA
View GitHub Profile
@rbarrois
rbarrois / gist:3721801
Created September 14, 2012 13:05
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: