Ñò ñ1Mc @sndZddkZddkZddkZddkTddkZddkZdZddd„Zee _dS(s‚M2Crypto enhancement to Python's urllib for handling 'https' url's. Copyright (c) 1999-2003 Ng Pheng Siong. All rights reserved.iÿÿÿÿN(t*tsslv23cCs—|dj o t|tiƒo ||_ntitƒ|_d}t|ƒtdƒjoEt|ƒ\}}|o"t|ƒ\}}t |ƒ}n|}n˜|\}}t |ƒ\}} | }d}t i |ƒdjo d}nNt| ƒ\}} |ot|ƒ\}}n|od||| f}n|p t d‚n|o(ddk} t i| i|ƒƒ} nd} tid|d|iƒ} |dj o>| id |ƒ| id d ƒ| id d t|ƒƒn| id|ƒ| o| idd| ƒnx!|iD]} t| i| ƒq"W| iƒ|dj o| i|dƒn| iƒ}|i}ti||id|ƒS(Ntthttps %s://%s%ss http errors no host giveniÿÿÿÿthostt ssl_contexttPOSTs Content-types!application/x-www-form-urlencodedsContent-lengths%dtGETt AuthorizationsBasic %ss shttps:(s http errors no host given(tNonet isinstancetSSLtContexttctxtDEFAULT_PROTOCOLttypet splithostt splitusertunquotet splittypetstringtlowertIOErrortbase64tstript encodestringthttpslibtHTTPSConnectiont putrequestt putheadertlent addheaderstapplyt endheaderstsendt getresponsetfpturllibt addinfourltmsg(tselfturltdataRt user_passwdRtselectortrealhostturltypetrestRtauththtargstrespR$((s7/usr/lib/python2.6/vendor-packages/M2Crypto/m2urllib.pyt open_httpssX             ( t__doc__RtsysR%R RRR R4t URLopener(((s7/usr/lib/python2.6/vendor-packages/M2Crypto/m2urllib.pyts$   6