Tryag File Manager
Home
-
Turbo Force
Current Path :
/
proc
/
self
/
root
/
usr
/
lib
/
python2.4
/
site-packages
/
M2Crypto
/
Upload File :
New :
File
Dir
//proc/self/root/usr/lib/python2.4/site-packages/M2Crypto/httpslib.pyo
mò kQ²Oc�����������@���s–���d��Z��d�k�Z�d�k�Z�d�k�Z�d�k�Z�d�k�Z�d�k�Td�k�l�Z�d�k�Z�d�e �f�d�„��ƒ��YZ �d�e�f�d�„��ƒ��YZ�d�e �f�d �„��ƒ��YZ �d�S( ���sz���M2Crypto support for Python 1.5.2 and Python 2.x's httplib. Copyright (c) 1999-2004 Ng Pheng Siong. All rights reserved.N(���t���*(���s ���HTTPS_PORTt���HTTPSConnectionc�����������B���s5���t��Z�d��Z�e�Z�e�e�d�„�Z�d�„��Z�d�„��Z�RS(���sA��� This class allows communication via SSL using M2Crypto. c���������K���sè���|�i�ƒ��}�y�|�i�d�ƒ�Wn�t�j �o�n�Xy�|�i�d�ƒ�Wn�t�j �o�n�Xy�|�i�d�ƒ�Wn�t�j �o�n�X|�o �t�ƒ��‚�n�y�|�d�|��_�Wn%�t�j �o�t�i �d�ƒ�|��_�n�Xt �i�|��|�|�|�ƒ�d��S(���Nt���key_filet ���cert_filet���ssl_contextt���sslv23(���t���sslt���keyst���removet ���ValueErrort���IllegalKeywordArgumentt���selft���ssl_ctxt���KeyErrort���SSLt���Contextt���HTTPConnectiont���__init__t���hostt���portt���strict(���R���R���R���R���R���R���(����(����t5���/usr/lib/python2.4/site-packages/M2Crypto/httpslib.pyR������s*���� c���������C���sú���d��}�xÊ�t�i�|��i�|��i�d�t�i�ƒ�D]§�\�}�}�}�}�}�d��}�zm�yH�t�i�|��i �d�|�ƒ}�|�i�|��i�|��i�f�ƒ�|�|��_ �d��}�d��SWn�t�i�j �o�}�|�}�n�XWd��|�d��j �o�|�i�ƒ��n�Xq(�W|�d��j�o�t�d�ƒ�‚�n�|�‚�d��S(���Ni����t���familys"���Empty list returned by getaddrinfo(���t���Nonet���errort���sockett���getaddrinfoR���R���R���t���SOCK_STREAMR���t���_t���sockR���t ���ConnectionR���t���connectt���et���closet���AssertionError(���R���R ���R���R���R���R���(����(����R���R���-���s&����"� � c���������C���s���d��S(���N(����(���R���(����(����R���R!���H���s����( ���t���__name__t ���__module__t���__doc__t ���HTTPS_PORTt���default_portR���R���R���R!���(����(����(����R���R������s ���� t���HTTPSc�����������B���s ���t��Z�e�Z�d�d��d��d�„�Z�RS(���Nt����c���������K���sb���t��i�|��|�|�|�ƒ�y�|�d�|��_�Wn%�t�j �o�t �i �d�ƒ�|��_�n�X|��i�|��i�_�d��S(���NR���R���(���t���HTTPR���R���R���R���R���R���R���R ���R���R���t���_conn(���R���R���R���R���R���(����(����R���R���^���s�����(���R#���R$���R���t���_connection_classR���R���(����(����(����R���R(���Z���s���t���ProxyHTTPSConnectionc�����������B���sŒ���t��Z�d��Z�h��d�d�<d�d�<Z�d�Z�d�Z�e�e�e�e�d�„�Z�d�d�d �„�Z�d �„��Z �d�„��Z �d�„��Z�d �„��Z�d�„��Z �d�„��Z�RS(���s �� An HTTPS Connection that uses a proxy and the CONNECT request. When the connection is initiated, CONNECT is first sent to the proxy (along with authorization headers, if supplied). If successful, an SSL connection will be established over the socket through the proxy and to the target host. Finally, the actual request is sent over the SSL connection tunneling through the proxy. t���httpiP���t���httpsi»��s���Proxy-Authorizations ���User-Agentc���������K���sA���t��i�|��|�|�|�|��|�|��_�|�|��_ �d�|��_�d�|��_ �d�S(���s†��� Create the ProxyHTTPSConnection object. host and port are the hostname and port number of the proxy server. N(���R���R���R���R���R���R���R���t���usernamet ���_usernamet���passwordt ���_passwordR���t���_proxy_autht ���_proxy_UA(���R���R���R���R���R0���R2���R���(����(����R���R���z���s����� i����c��� ������C���sÑ���t��i�|�ƒ�\�}�}�|�d��j�o�t�d�|�‚�n�t��i�|�ƒ�\�}�}�t��i �|�ƒ�\�}�}�|�d��j�o8�y�|��i�|�}�Wq¢�t �j �o�t�d�|�‚�q¢�Xn�|�|��_�|�|��_�t�i�|��|�|�|�|�ƒ�d��S(���Ns���unknown URL type: %ss���unknown protocol for: %s(���t���urllibt ���splittypet���urlt���protot���restR���R ���t ���splithostR���t ���splitportR���R���t���_portsR ���t ���_real_hostt ���_real_portR���t ���putrequestt���methodt ���skip_hostt���skip_accept_encoding( ���R���RA���R8���RB���RC���R9���R:���R���R���(����(����R���R@���ˆ���s���� c���������C���si���|�i�ƒ��|��i�i�ƒ��j�o �|�|��_�n�|�i�ƒ��|��i�i�ƒ��j�o �|�|��_�n�t�i �|��|�|�ƒ�d��S(���N( ���t���headert���lowerR���t ���_UA_HEADERt���valueR5���t���_AUTH_HEADERR4���R���t ���putheader(���R���RD���RG���(����(����R���RI���œ���s ���� c���������C���s.���|��i�p�|��i�ƒ��|��_�n�t�i�|��ƒ�d��S(���N(���R���R4���t���_encode_authR���t ���endheaders(���R���(����(����R���RK���¥���s���� c���������C���s~���t��i�|��ƒ�|��i�i�|��i�ƒ��ƒ�t�|��i�ƒ�}�|�i�ƒ��|�i �}�|�d�j�o�|��i�ƒ��t�i �d�|�‚�n�|��i�ƒ��d��S(���NiÈ���s���Proxy connection failed: %d(���R���R���R���R���t���sendallt���_get_connect_msgt���HTTPResponset���responset���begint���statust���codeR!���R���R���t ���_start_ssl(���R���RR���RO���(����(����R���R���®���s���� c���������C���sŽ���d�|��i�|��i�f�}�|�d�|��i�|��i�f�}�|��i�o�|�d�|��i�|��i�f�}�n�|��i�o�|�d�|��i�|��i�f�}�n�|�d�}�|�S(���s6��� Return an HTTP CONNECT request to send to the proxy. s���CONNECT %s:%d HTTP/1.1 s ���Host: %s:%d s���%s: %s s��� N(���R���R>���R?���t���msgR5���RF���R4���RH���(���R���RT���(����(����R���RM���¾���s����� c���������C���sF���t��i�|��i�|��i�ƒ�|��_�|��i�i�ƒ��|��i�i�ƒ��|��i�i�ƒ��d�S(���s*��� Make this connection's socket SSL-aware. N(���R���R���R���R���R���t ���setup_sslt���set_connect_statet���connect_ssl(���R���(����(����R���RS���É���s ����� c���������C���sU���|��i�o�|��i�p�d�Sn�d�|��i�|��i�f�}�t�i�|�ƒ�i�d�d�ƒ�}�d�|�S(���s>��� Encode the username and password for use in the auth header. s���%s:%ss��� R)���s���Basic %sN( ���R���R1���R3���R���t���userpasst���base64t���encodestringt���replacet���enc_userpass(���R���RX���R\���(����(����R���RJ���Ð���s�����(���R#���R$���R%���R=���RH���RF���R���R���R@���RI���RK���R���RM���RS���RJ���(����(����(����R���R-���h���s���� (���R%���t���stringt���sysR���R6���RY���t���httplibR&���R���R���R���R*���R(���R-���( ���R&���R-���R(���RY���R6���R^���R���R���R���R]���(����(����R���t���?���s��� L