KGRKJGETMRETU895U-589TY5MIGM5JGB5SDFESFREWTGR54TY
Server : Apache/2.2.17 (Unix) mod_ssl/2.2.17 OpenSSL/0.9.8e-fips-rhel5 DAV/2 PHP/5.2.17
System : Linux localhost 2.6.18-419.el5 #1 SMP Fri Feb 24 22:47:42 UTC 2017 x86_64
User : nobody ( 99)
PHP Version : 5.2.17
Disable Function : NONE
Directory :  /proc/22697/root/usr/lib64/python2.4/site-packages/M2Crypto/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //proc/22697/root/usr/lib64/python2.4/site-packages/M2Crypto/m2urllib2.pyo
mς
lεμPc@spdZdkZdkTdkZdkZdkZdeifd„ƒYZdefd„ƒYZ	dd„ZdS(s§
M2Crypto enhancement to Python's urllib2 for handling 
'https' url's.

Code from urllib2 is Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006
Python Software Foundation; All Rights Reserved

Summary of changes:
 * Use an HTTPSProxyConnection if the request is going through a proxy.
 * Add the SSL context to the https connection when performing https_open.
 * Add the M2Crypto HTTPSHandler when building a default opener.
N(t*t_closing_fileobjectcBs tZdZd„Zd„ZRS(sŠsocket._fileobject that propagates self.close() to the socket.

    Python 2.5 provides this as socket._fileobject(sock, close=True).
    cCstii||ƒdS(N(tsockett_fileobjectt__init__tselftsock(RR((t8/usr/lib64/python2.4/site-packages/M2Crypto/m2urllib2.pyRscCs'|i}tii|ƒ|iƒdS(N(Rt_sockRRRtclose(RR((RR	s	(t__name__t
__module__t__doc__RR	(((RRs	tHTTPSHandlercBs&tZdd„Zd„ZeiZRS(NcCs:ti|ƒ|dj	o
||_ntiƒ|_dS(N(tAbstractHTTPHandlerRRtssl_contexttNonetctxtSSLtContext(RR((RR%s


cCsm|iƒ}|ptdƒ‚n|iƒ}	ti|	ƒd}
|
|joti	d|d|iƒ}nti
d|d|iƒ}|i|iƒt|iƒ}|i|iƒd|d<y5|i|iƒ|iƒ|i|ƒ|iƒ}Wn$tij
o}t|ƒ‚nX|i|_t|ƒ}t!||i"|iƒƒ}|i$|_%|i&|_"|S(s¦Return an addinfourl object for the request, using http_class.

        http_class must implement the HTTPConnection API from httplib.
        The addinfourl return value is a file-like object.  It also
        has methods and attributes including:
            - info(): return a mimetools.Message object for the headers
            - geturl(): return the original request URL
            - code: HTTP status code
        s
no host givenithostRR	t
ConnectionN('treqtget_hostRtURLErrortget_full_urltfull_urlturlparsettarget_hostthttpslibtProxyHTTPSConnectionRRthtHTTPSConnectiontset_debuglevelt_debugleveltdicttheaderstupdatetunredirected_hdrstrequestt
get_methodtget_selectortdatatgetresponsetrRterrorterrtreadtrecvRtfpt
addinfourltmsgtresptstatustcodetreason(RRR1R4R.RR$RR,RR((Rt
https_open.s0	

%
(R
RRRR8Rtdo_request_t
https_request(((RR
$s		=cGsGtƒ}tttttttt	g}g}xu|D]m}xd|D]\}ti|ƒo%t||ƒo|i|ƒqqAt||ƒo|i|ƒqAqAWq4Wx|D]}|i|ƒq¬Wx|D]}|i|ƒƒqΚWt|jo|it|ƒƒnx8|D]0}ti|ƒo
|ƒ}n|i|ƒqW|S(sCreate an opener object from a list of handlers.

    The opener will use several default handlers, including support
    for HTTP and FTP.

    If any of the handlers passed as arguments are subclasses of the
    default handlers, the default handlers will not be used.
    N(tOpenerDirectortopenertProxyHandlertUnknownHandlertHTTPHandlertHTTPDefaultErrorHandlertHTTPRedirectHandlert
FTPHandlertFileHandlertHTTPErrorProcessortdefault_classestskiptklassthandlerstchecktinspecttisclasst
issubclasstappendt
isinstancetremovetadd_handlerR
RR(RRHRR<RFRERGRI((Rtbuild_openeros6	

(RRturllib2RRRRRRR
RRQ(RQRRRR
RR((Rt?s				K

Anon7 - 2021