ó þ¡hKc@sxdZddlZddlTddlmZddlmZeeƒZ defd„ƒYZ de fd „ƒYZ dS( sL Contains classes for basic HTTP (authenticated) transport implementations. iÿÿÿÿN(t*(t HttpTransport(t getLoggertHttpAuthenticatedcBsDeZdZd„Zd„Zd„Zd„Zd„Zd„ZRS(s< Provides basic http authentication that follows the RFC-2617 specification. As defined by specifications, credentials are provided to the server upon request (HTTP/1.0 401 Authorization Required) by the server only. @ivar pm: The password manager. @ivar handler: The authentication handler. cKs#tj||tjƒ|_dS(sš @param kwargs: Keyword arguments. - B{proxy} - An http proxy to be specified on requests. The proxy is defined as {protocol:proxy,} - type: I{dict} - default: {} - B{timeout} - Set the url open timeout (seconds). - type: I{float} - default: 90 - B{username} - The username used for http authentication. - type: I{str} - default: None - B{password} - The password used for http authentication. - type: I{str} - default: None N(Rt__init__tu2tHTTPPasswordMgrWithDefaultRealmtpm(tselftkwargs((s8/usr/lib/python2.7/site-packages/suds/transport/https.pyR&scCs|j|ƒtj||ƒS(N(taddcredentialsRtopen(Rtrequest((s8/usr/lib/python2.7/site-packages/suds/transport/https.pyR :s cCs|j|ƒtj||ƒS(N(R Rtsend(RR ((s8/usr/lib/python2.7/site-packages/suds/transport/https.pyR >s cCsO|jƒ}d|krK|d}|d}|jjd|j||ƒndS(Nii(t credentialstNoneRt add_passwordturl(RR Rtutp((s8/usr/lib/python2.7/site-packages/suds/transport/https.pyR Bs     cCs|jj|jjfS(N(toptionstusernametpassword(R((s8/usr/lib/python2.7/site-packages/suds/transport/https.pyRIscCs,tj|ƒ}|jtj|jƒƒ|S(N(Rt u2handlerstappendRtHTTPBasicAuthHandlerR(Rthandlers((s8/usr/lib/python2.7/site-packages/suds/transport/https.pyRLs( t__name__t __module__t__doc__RR R R RR(((s8/usr/lib/python2.7/site-packages/suds/transport/https.pyRs     tWindowsHttpAuthenticatedcBseZdZd„ZRS(s§ Provides Windows (NTLM) http authentication. @ivar pm: The password manager. @ivar handler: The authentication handler. @author: Christopher Bess cCs`yddlm}Wntk r3tdƒ‚nXtj|ƒ}|j|j|jƒƒ|S(Niÿÿÿÿ(tHTTPNtlmAuthHandlers Cannot import python-ntlm module(tntlmRt ImportErrort ExceptionRRRR(RRR((s8/usr/lib/python2.7/site-packages/suds/transport/https.pyRZs (RRRR(((s8/usr/lib/python2.7/site-packages/suds/transport/https.pyRRs( Rturllib2Rtsuds.transporttsuds.transport.httpRtloggingRRtlogRR(((s8/usr/lib/python2.7/site-packages/suds/transport/https.pyts   5