GIF89a=( �' 7IAXKgNgYvYx\%wh&h}t�h%�s%x�}9�R��&�0%� (�.��5�SD��&�a)�x5��;ͣ*ȡ&ղ)ׯ7׵<ѻ4�3�H֧KͯT��Y�aq��q��F� !� ' !� NETSCAPE2.0 , =( ��pH,�Ȥr�l:xШtJ�Z�جv��z��xL.:��z�n���|N�����~�������& !�0`9R�}��"�"a:S�~x��������g���E�������R���E����B�� ��ȸ��D���"�Ů� �H��L��D٫D�B�����D���T���H �G��A R�ڐ |�� ٭&��E8�S�kG�A�px�a��� R2XB��E8I���6X�:vT)�~��q�賥��"F~%x� � 4#Z�0O|-4Bs�X:= Q� Sal��yXJ`GȦ|s h��K3l7�B|�$'7Jީܪ0!��D�n=�P� ����0`�R�lj����v>���5 �.69�ϸd�����nlv�9��f{���Pbx �l5}�p� ��� �3a���I�O����!ܾ���i��9��#��)p�a ޽ �{�)vm��%D~ 6f��s}Œ�D�W E�`!� �&L8x� �ܝ{)x`X/>�}m��R�*|`D�=�_ ^�5 !_&'a�O�7�c��`DCx`�¥�9�Y�F���`?��"� �n@`�} lď��@4>�d S �v�xN��"@~d��=�g�s~G��� ���ud &p8Q�)ƫlXD����A~H�ySun�j���k*D�LH�] ��C"J��Xb~ʪwSt}6K,��q�S:9ت:���l�@�`�� �.۬�t9�S�[:��=`9N����{¿�A !R�:���6��x�0�_ �;������^���#����!����U���;0L1�����p% A��U̬ݵ��%�S��!���~`�G���� ���=4�np�3���������u�u�ٮ|%2�I��r�#0��J``8�@S@5� ���^`8E�]�.�S���7 � �0�j S�D� z���i�S�����!���l��w9*�D�I�nEX��� &A�Go�Qf��F��;���}�J����F5��Q|���X��T��y���]� o ��C=��:���PB@ D׽S�(>�C�x}`��xJЬ�۠��p+eE0`�}`A �/NE�� �9@��� H�7�!%B0`�l*��!8 2�%� �:�1�0E��ux%nP1�!�C)�P81l�ɸF#Ƭ{����B0>�� �b�`��O3��()yRpb��E.ZD8�H@% �Rx+%���c� ���f��b�d�`F�"8�XH"��-�|1�6iI, 2�$+](A*j� QT�o0.�U�`�R�}`�SN����yae�����b��o~ S)�y�@��3 �tT�0�&�+~L�f"�-|�~��>!�v��~�\Q1)}@�}h#aP72�"�$ !� " , =( &7IAXG]KgNgYvYxR"k\%w]'}h}t�h%�g+�s%r.m3ax3�x�}9��&��+�!7�0%� (�.�SD��&��;�"&ײ)׻4��6�K� �@pH,�Ȥr�l:xШtJ�Z�جv��z��xL.:��z�n���|N�����~�������& !�0`9R�}��"�"a:S�~x��������g �� E �� �������E �´��C���ǶR��D��"Ʒ�ʱH��M��GڬD�B����D��T����G���C�C� l&�~:'�tU�6ɹ#��)�'�.6�&��Ȼ K(8p0N�?!�2"��NIJX>R��OM '��2�*x�>#n� �@<[:�I�f ��T���Cdb��[�}E�5MBo��@�`@��tW-3 �x�B���jI�&E�9[T&$��ﯧ&"s��ȳ����dc�UUρ#���ldj?����`\}���u|3'�R]�6 �S#�!�FKL�*N E���`$�:e�YD�q�.�촁�s \-�jA 9�����-��M[�x(�s��x�|���p��}k�T�DpE@W� ��]k`1� ���Yb ��0l��*n0��"~zBd�~u�7�0Bl��0-�x~|U�U0 �h�*HS�|��e"#"?vp�i`e6^�+q��`m8 #V�� ��VS|`��"m"сSn|@:U���~`pb�G�ED����2F�I�? >�x� R� ��%~jx��<�a�9ij�2�D��&: Z`�]w���:�6��B�7eFJ|�ҧ�,���FǮcS�ʶ+B�,�ܺN���>PAD�HD��~���n��}�#�� Q��S���2�X�{�k�lQ�2�����w�|2� h9��G�,m���3��6-��E�L��I�³*K���q�`DwV�QXS��peS��� qܧTS����R�u �<�a�*At�lmE� � ��N[P1�ۦ��$��@`��Dpy�yXvCAy�B`}D� 0QwG#� �a[^�� $���Ǧ{L�"[��K�g�;�S~��GX.�goT.��ư��x���?1z��x~:�g�|�L� ��S`��0S]P�^p F<""�?!,�!N4&P� ����:T�@h�9%t��:�-~�I<`�9p I&.)^ 40D#p@�j4�ج:�01��rܼF2oW�#Z ;$Q q  �K��Nl#29 !F@�Bh�ᏬL!XF�LHKh�.�hE&J�G��<"WN!�����Y@� >R~19J"�2,/ &.GXB%�R�9B6�W]���W�I�$��9�RE8Y� ��"�A5�Q.axB�&ة�J�! �t)K%tS-�JF b�NMxL��)�R��"���6O!TH�H� 0 !� ) , =( &AXKgNgYvYxR"k\%wh&h}h%�g+�s%r.x3�x�}9��&��+�R,�!7�0%� (�.��5��&�a)��;�"&ף*Ȳ)ׯ7׻4�3��6�H֧KͻH�T��Y��q��h� ��pH,�Ȥr�l:xШtJ�Z�جv��z��xL.:��z�n���|N�����~�������& !�0`9R�}��"�"a:S�~x��������g �� E$����� � ����$E$��"��D� � ������R��C��� E ��H�M��G�D� �B��ϾD��a��`1r��Ӑ�� �o~�zU!L�C'�yW�UGt����ll�0���uG�)A�s[��x� �xO%��X2�  P�n:R/��aHae+�Dm?# ǣ6�8�J�x�Di�M���j���5oQ7�- <! *�l��R2r/a!l)d� A"�E���� &� ;��c �%����b��pe~C"B���H�eF2��`8qb�t_`ur`e� w�u3��Pv�h""�`�Íx�LĹ��3� �~ֺ�:���MDfJ� �۵�W�%�S�X �؁)�@��:E��w�u�Sxb8y\m�zS��Zb�E�L��w!y(>�"w�=�|��s�d �C�W)H�cC$�L �7r.�\{)@�`@ �X�$PD `aaG:���O�72E�amn]�"Rc�x�R� &dR8`g��i�xLR!�P &d����T���i�|�_ � Qi�#�`g:��:noM� :V �)p����W&a=�e�k� j���1߲s�x�W�jal|0��B0�, \j۴:6���C ��W��|��9���zĸV {�;��n��V�m�I��.��PN� ����C��+��By�ѾHŸ:��� 7�Y�FTk�SaoaY$D�S���29R�kt� ��f� ��:��Sp�3�I��DZ� �9���g��u�*3)O��[_hv ,���Et x�BH� �[��64M@�S�M7d�l�ܶ5-��U܍��z�R3Ԭ3~ ��P��5�g: ���kN�&0�j4���#{��3S�2�K�'ợl���2K{� {۶?~m𸧠�I�nE�='����^���_�=��~�#O���'���o..�Y�n��CSO��a��K��o,���b�����{�C�� "�{�K ��w��Ozdը�:$ ���v�] A#� ���a�z)Rx׿ƥ�d``�w-�y�f�K!����|��P��=�`�(f��'Pa ��BJa%��f�%`�}F����6>��`G"�}�=�!o`�^FP�ةQ�C���`(�}\�ݮ ��$<��n@dĠE#��U�I�!� #l��9`k���'Rr��Z�NB�MF �[�+9���-�wj���8�r� ,V�h"�|�S=�G_��"E� 0i*%̲��da0mVk�):;&6p>�jK ��# �D�:�c?:R Ӭf��I-�"�<�="��7�3S��c2RW ,�8(T"P0F¡Jh�" ; 403WebShell
403Webshell
Server IP : 81.88.48.95  /  Your IP : 10.2.217.94, 216.73.216.227
Web Server : Apache
System : Linux opus14 3.2.0-4-amd64 #1 SMP Debian 3.2.68-1+deb7u3 x86_64
User : nobody ( 99)
PHP Version : 5.3.3-7+squeeze3
Disable Function : NONE
MySQL : ON  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /usr/lib/python2.6/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/lib/python2.6/urllib.pyc
Mc"@sdZddkZddkZddkZddkZddkZddklZdddddd	d
ddd
ddddddddddddddddddgZ	d Z
d!Zeid"jodd#k
lZlZngeid$jodd#klZlZn=eid%jodd#klZlZnd&Zd'Zeaeed(Zeeed)Zd*ZyddkZWn
eZnXeZd+efd,YZhZdfd-YZdefd.YZea d/Z!ea"d0Z#ea$d1Z%ea&d2Z'd3fd4YZ(d5fd6YZ)d7e)fd8YZ*d9e)fd:YZ+d;e)fd<YZ,ye-Wne.j
od=Z/nXd>Z/d?Z0d@Z1ea2dAZ3ea4dBZ5ea6dCZ7ea8dDZ9ea:dEZ;ea<ddFZ=ea>dGZ?ea@dHZAdIZBeaCdJZDdKZEeFdLeEDZGdMZHdNZIdOZJhZKdPdQZLdRdSZMdTdUZNdVZOdWZPeiQdXjo>ddYkRlSZSlTZTdZZUd[ZVd\ZWd]ZXnEeid$jo(d^ZYd_ZXd`ZZdaZWn
eOZXePZWdbZ[dcZ\gddZ]deZ^e_dfjoe^ndS(gsOpen an arbitrary URL.

See the following document for more info on URLs:
"Names and Addresses, URIs, URLs, URNs, URCs", at
http://www.w3.org/pub/WWW/Addressing/Overview.html

See also the HTTP spec (from which the error codes are derived):
"HTTP - Hypertext Transfer Protocol", at
http://www.w3.org/pub/WWW/Protocols/

Related standards and specs:
- RFC1808: the "relative URL" spec. (authoritative status)
- RFC1738 - the "URL standard". (authoritative status)
- RFC1630 - the "URI spec". (informational status)

The object returned by URLopener().open(file) will differ per
protocol.  All you know is that is has methods read(), readline(),
readlines(), fileno(), close() and info().  The read*(), fileno()
and close() methods work like those of open files.
The info() method returns a mimetools.Message object which can be
used to query various info about the object, if available.
(mimetools.Message objects are queried with the getheader() method.)
iN(turljointurlopent	URLopenertFancyURLopenerturlretrievet
urlcleanuptquotet
quote_plustunquotetunquote_plust	urlencodeturl2pathnametpathname2urltsplittagt	localhosttthishostt	ftperrorstbasejointunwrapt	splittypet	splithostt	splitusertsplitpasswdt	splitportt
splitnportt
splitqueryt	splitattrt
splitvaluet
getproxiess1.17i
tmac(RRtnttriscoscCs
t|S(sOS-specific conversion from a relative URL of the 'file' scheme
        to a file system path; not recommended for general use.(R(tpathname((s/usr/lib/python2.6/urllib.pyR4scCs
t|S(sOS-specific conversion from a file system path to a relative URL
        of the 'file' scheme; not recommended for general use.(R(R ((s/usr/lib/python2.6/urllib.pyR9scCsddkl}|ddd|dj	otd|}n!tpt}|ant}|djo|i|S|i||SdS(s=Create a file-like object for the specified URL to read from.i(twarnpy3ksMurllib.urlopen() has been removed in Python 3.0 in favor of urllib2.urlopen()t
stacklevelitproxiesN(twarningsR!tNoneRt
_urlopenertopen(turltdataR#R!topener((s/usr/lib/python2.6/urllib.pyRGs	
	

cCs*tp
tanti||||S(N(R&Rtretrieve(R(tfilenamet
reporthookR)((s/usr/lib/python2.6/urllib.pyRYs
cCs-totintitidS(N(R&tcleanupt	_safemapstcleartftpcache(((s/usr/lib/python2.6/urllib.pyR^s
tContentTooShortErrorcBseZdZRS(cCsti||||_dS(N(tIOErrort__init__tcontent(tselftmessageR5((s/usr/lib/python2.6/urllib.pyR4ns(t__name__t
__module__R4(((s/usr/lib/python2.6/urllib.pyR2mscBseZdZdZdeZddZdZdZ	dZ
dZddZddZ
dd	Zdddd
ZddZddZd
ZeoddZndZdZdZddZRS(s,Class to open URLs.
    This is a class rather than just a subroutine because we may need
    more than one set of global protocol-specific options.
    Note -- this is a base class for those who don't want the
    automatic handling of errors type 302 (relocated) and 401
    (authorization needed).sPython-urllib/%scKs|djo
t}nt|dp
td||_|id|_|id|_d|ifg|_	g|_
ti|_
d|_t|_dS(Nthas_keysproxies must be a mappingtkey_filet	cert_files
User-Agent(R%RthasattrtAssertionErrorR#tgetR;R<tversiont
addheaderst_URLopener__tempfilestostunlinkt_URLopener__unlinkt	tempcacheR1(R6R#tx509((s/usr/lib/python2.6/urllib.pyR4s

			cCs|idS(N(tclose(R6((s/usr/lib/python2.6/urllib.pyt__del__scCs|idS(N(R.(R6((s/usr/lib/python2.6/urllib.pyRHscCso|ioFx8|iD]-}y|i|Wqtj
oqXqW|i2n|io|iindS(N(RBREtOSErrorRFR0(R6tfile((s/usr/lib/python2.6/urllib.pyR.s

	
cGs|ii|dS(sdAdd a header to be used by the HTTP interface only
        e.g. u.addheader('Accept', 'sound/basic')N(RAtappend(R6targs((s/usr/lib/python2.6/urllib.pyt	addheaderscCstt|}t|dd}|ioC||ijo3|i|\}}t|d}t|||St|\}}|p
d}n||ijoA|i|}t|\}}	t|	\}
}|
|f}nd
}d|}||_
|idd}t||p/|o|i
|||S|i||Sny;|d
jot|||St||||SWn4tij
o%}
td|
ftid	nXd
S(s6Use URLopener().open(file) instead of open(file, 'r').tsafes%/:=&?~#+!$,;'@()*[]|trbRKtopen_t-t_ssocket erroriN(RttoBytesRRFR't
addinfourlRR#RR%ttypetreplaceR=topen_unknown_proxytopen_unknowntgetattrtsocketterrorR3tsystexc_info(R6tfullurlR)R,theaderstfpturltypeR(tproxyt	proxyhostthosttselectortnametmsg((s/usr/lib/python2.6/urllib.pyR's8


	
cCs(t|\}}tdd|fdS(s/Overridable interface to open unknown URL type.s	url errorsunknown url typeN(RR3(R6R_R)RVR(((s/usr/lib/python2.6/urllib.pyRYscCs,t|\}}tdd||fdS(s/Overridable interface to open unknown URL type.s	url errorsinvalid proxy for %sN(RR3(R6RcR_R)RVR(((s/usr/lib/python2.6/urllib.pyRXscCstt|}|io||ijo|i|St|\}}|djom|p
|djoXy<|i|}|i}~tt|d|fSWqt	j
o	}	qXn|i
||}z|i}
|ot
|d}nddk}t|\}
}t|pd\}
}t|pd\}}
t
|pd\}}
tii|d}|i|\}}|ii|ti|d}z||
f}|idj	o||i|<nd
}d}d	}d	}|o5d
|
jot|
d}n||||nxf|i|}|djoPn|t|7}|i||d7}|o||||q<q<Wd|iXWd|iX~~|d	jo*||jotd||f|n|S(stretrieve(url) returns (filename, headers) for a local object
        or (tempfilename, headers) for a remote object.RKitwbiNtiiiscontent-lengthsContent-Lengths1retrieval incomplete: got only %i out of %i bytesi (RRTRFRR%topen_local_filetinfoRRR3R'ttempfileRRRCtpathtsplitexttmkstempRBRLtfdopentinttreadtlentwriteRHR2(R6R(R,R-R)RVturl1RathdrsRhR`ttfpRmtgarbageRntsuffixtfdtresulttbstsizeRstblocknumtblock((s/usr/lib/python2.6/urllib.pyR+sn"	



cCs{ddk}d}d}t|toEt|\}}|o"t|\}}t|}n|}n|\}}t|\}}t|\}	}
|
}d}|	idjo
d}net|
\}}
|ot|\}}n|od|	||
f}nt	|o
|}n|p
t
dn|o%ddk}|i|i
}nd}|o%ddk}|i|i
}
nd}
|i|}|dj	o>|id||idd	|id
dt|n|id||o|id
d|n|
o|idd|
n|o|id|nx|iD]}|i|qoW|i|dj	o|i|n|i\}}}|i}|djo"|o|int
dnd|jo
djnot||d||S|djo|i|||||S|i||||||SdS(sUse HTTP protocol.iNthttps	%s://%s%ss
http errors
no host giventPOSTsContent-Types!application/x-www-form-urlencodedsContent-Lengths%dtGETsProxy-AuthorizationsBasic %st
AuthorizationtHostshttp protocol errorisgot a bad status lineii,shttp:(s
http errors
no host given(shttp protocol errorisgot a bad status lineN(thttplibR%t
isinstancetstrRRRRtlowertproxy_bypassR3tbase64t	b64encodetstriptHTTPt
putrequestt	putheaderRtRAt
endheaderstsendtgetreplytgetfileRHRUt
http_error(R6R(R)Rtuser_passwdtproxy_passwdReRftrealhostRbtrestRt
proxy_authtauththRMterrcodeterrmsgR`Ra((s/usr/lib/python2.6/urllib.pyt	open_http#s~











c
Csd|}t||oct||}|djo||||||}	n|||||||}	|	o|	Sn|i|||||S(sHandle http errors.
        Derived class can override this, or provide specific handlers
        named http_error_DDD where DDD is the 3-digit error code.s
http_error_%dN(R=RZR%thttp_error_default(
R6R(RaRRR`R)RgtmethodR|((s/usr/lib/python2.6/urllib.pyRns

	cCs/|i}|itd|||fdS(s>Default error handler: close the connection and raise IOError.s
http errorN(RsRHR3(R6R(RaRRR`tvoid((s/usr/lib/python2.6/urllib.pyR}s
cCsyddk}d}d}t|toEt|\}}|o"t|\}}t|}n|}n|\}}t|\}}t|\}	}
|
}d}|	idjo
d}nNt|
\}}
|ot|\}}n|od|	||
f}n|p
t	dn|o%ddk
}|i|i}nd}|o%ddk
}|i|i}
nd}
|i
|dd|id	|i}|dj	o>|id
||idd|id
dt|n|id||o|idd|n|
o|idd|
n|o|id|nx|iD]}|i|qmW|i|dj	o|i|n|i\}}}|i}|djo"|o|int	dnd|jo
djnot||d||S|djo|i|||||S|i||||||SdS(sUse HTTPS protocol.iNthttpss	%s://%s%sshttps errors
no host giveniR;R<RsContent-Types!application/x-www-form-urlencodedsContent-Lengths%dRsProxy-AuthorizationsBasic %sRRshttp protocol errorsgot a bad status lineii,shttps:(shttps errors
no host given(shttp protocol errorisgot a bad status lineN(RR%RRRRRRRR3RRRtHTTPSR;R<RRRtRARRRRRHRUR(R6R(R)RRRReRfRRbRRRRRRMRRR`Ra((s/usr/lib/python2.6/urllib.pyt
open_httpss


	
	





cCs{t|tp
td
n|d djo<|dd!djo(|dd!idjo|i|S|i|Sd	S(s/Use local file or FTP depending on form of URL.s
file errors9proxy support for file protocol currently not implementedis//it/is
localhost/N(s
file errors9proxy support for file protocol currently not implemented(RRR3Rtopen_ftpRk(R6R(((s/usr/lib/python2.6/urllib.pyt	open_files

?cCsddk}ddk}ddk}yddkl}Wn#tj
oddkl}nXt|\}}t|}yti	|}	Wn0t
j
o$}
t|
i|
i
|
inX|	i}|ii|	idt}|i|d}
|i|d|
pd||f}|p?|}|d d	jod
|}ntt|d||St|\}}|oati|ttfjo?|}|d d	jod
|}ntt|d||StddS(sUse local file.iN(tStringIOtusegmtis6Content-Type: %s
Content-Length: %d
Last-modified: %s
s
text/plainiRsfile://RPslocal file errorsnot on local host(slocal file errorsnot on local host(t	mimetypest	mimetoolstemail.utilst	cStringIORtImportErrorRRRCtstatRJR3terrnotstrerrorR,tst_sizetutilst
formatdatetst_mtimetTruet
guess_typetMessageRUR'RR[t
gethostbynameRR(R6R(RRtemailRReRKt	localnametstatsteR~tmodifiedtmtypeR`turlfiletport((s/usr/lib/python2.6/urllib.pyRks@$ 		"cCst|tp
tdnddk}ddk}yddkl}Wn#tj
oddkl}nXt|\}}|p
tdnt	|\}}t
|\}}|ot|\}}	nd}	t
|}t
|pd}t
|	pd}	ti|}|pddk}
|
i}n
t|}t|\}}t
|}|id}|d |d}}
|o|d	o|d
}n|o|d	od|d	<n|||di|f}t|itjoPxM|iiD]8}||jo%|i|}|i|=|iqqWnyK||ijo#t||	||||i|<n|
p
d}nd}xP|D]H}t|\}}|id
jo|djo|i}qqW|i|i|
|\}}|i d|d	}d}|o|d|7}n|dj	o|d	jo|d|7}n|i!||}t"||d|SWn4t#j
o%}td|ft$i%dnXdS(sUse FTP protocol.s	ftp errors8proxy support for ftp protocol currently not implementediN(Rs
no host givenRjRiitDtIRVtatAtitdsftp:sContent-Type: %s
sContent-Length: %d
i(s	ftp errors8proxy support for ftp protocol currently not implemented(s	ftp errors
no host given(RRRRRR(&RRR3RRRRRRRRRR%RR[RtftplibtFTP_PORTRrRtsplittjoinRtR1tMAXFTPCACHEtkeysRHt
ftpwrapperRRtuppertretrfileRRRURR]R^(R6R(RRRReRnRtusertpasswdRtattrstdirsRKtkeytktvRVtattrtvalueRatretrlenRR`Rh((s/usr/lib/python2.6/urllib.pyRs|





#

cCst|tp
tdnddk}yddkl}Wn#tj
oddkl}nXy|idd\}}Wntj
otdnX|p
d	}n|i	d
}|djo-d||jo||d}|| }nd
}g}|i
dtidti
ti|i
d||djoddk}	|	i|}n
t|}|i
dt||i
d
|i
|di|}||}
|i|
d}t|
||S(sUse "data" URL.s
data errors9proxy support for data protocol currently not implementediN(Rt,isbad data URLstext/plain;charset=US-ASCIIt;it=RjsDate: %ss%a, %d %b %Y %H:%M:%S GMTsContent-type: %sRsContent-Length: %ds
(s
data errors9proxy support for data protocol currently not implemented(s
data errorsbad data URL(RRR3RRRRRt
ValueErrortrfindRLttimetstrftimetgmtimeRtdecodestringRRtRRRU(R6R(R)RRRVtsemitencodingRhRtfR`((s/usr/lib/python2.6/urllib.pyt	open_data8sB




N(R8R9t__doc__R%RBt__version__R@R4RIRHR.RNR'RYRXR+RRRt	_have_sslRRRkRR(((s/usr/lib/python2.6/urllib.pyRss*
				$CK	J			#	>cBseZdZdZdZddZdZddZddZ	ddZ
ddZdd	Zdd
Z
ddZddZdd
ZddZdZRS(s?Derived class with handlers for errors we can handle (perhaps).cOs2ti|||h|_d|_d|_dS(Nii
(RR4t
auth_cachettriestmaxtries(R6RMtkwargs((s/usr/lib/python2.6/urllib.pyR4js		cCst||d||S(s3Default error handling -- don't raise an exception.shttp:(RU(R6R(RaRRR`((s/usr/lib/python2.6/urllib.pyRpsc	Cs|id7_|ioY|i|ijoFt|do
|i}n
|i}d|_|||dd|S|i||||||}d|_|S(s%Error 302 -- relocated (temporarily).ithttp_error_500iis)Internal Server Error: Redirect Recursion(RRR=RRtredirect_internal(	R6R(RaRRR`R)tmethR|((s/usr/lib/python2.6/urllib.pythttp_error_302ts
				c	Cswd|jo|d}n d|jo|d}ndS|i}|it|id||}|i|S(Ntlocationturit:(RsRHRRVR'(	R6R(RaRRR`R)tnewurlR((s/usr/lib/python2.6/urllib.pyRs


cCs|i||||||S(s*Error 301 -- also relocated (permanently).(R(R6R(RaRRR`R)((s/usr/lib/python2.6/urllib.pythttp_error_301scCs|i||||||S(s;Error 303 -- also relocated (essentially identical to 302).(R(R6R(RaRRR`R)((s/usr/lib/python2.6/urllib.pythttp_error_303scCsG|djo|i||||||S|i|||||SdS(s1Error 307 -- relocated, but turn POST into error.N(R%RR(R6R(RaRRR`R)((s/usr/lib/python2.6/urllib.pythttp_error_307s
c
Csd|jo ti||||||n|d}ddk}|id|}	|	p ti||||||n|	i\}
}|
idjo ti||||||nd|id}|djot||||St|||||SdS(s_Error 401 -- authentication required.
        This function supports Basic authentication only.swww-authenticateiNs![ 	]*([^ 	]+)[ 	]+realm="([^"]*)"tbasictretry_t_basic_auth(	RRtretmatchtgroupsRRVR%RZ(
R6R(RaRRR`R)tstuffRRtschemetrealmRg((s/usr/lib/python2.6/urllib.pythttp_error_401s"


c
Csd|jo ti||||||n|d}ddk}|id|}	|	p ti||||||n|	i\}
}|
idjo ti||||||nd|id}|djot||||St|||||SdS(seError 407 -- proxy authentication required.
        This function supports Basic authentication only.sproxy-authenticateiNs![ 	]*([^ 	]+)[ 	]+realm="([^"]*)"Rtretry_proxy_R(	RRRRRRRVR%RZ(
R6R(RaRRR`R)RRRRRRg((s/usr/lib/python2.6/urllib.pythttp_error_407s"


cCst|\}}d||}|id}t|\}}	t|	\}	}
|	idd}|	|}	|i|	||\}}
|p|
pdSt|dddt|
ddd|	}	d|	|
|id<|djo|i|S|i||SdS(Nshttp://Rt@iRORjR(RR#Rtfindtget_user_passwdR%RR'(R6R(RR)ReRfRRcRbRdt
proxyselectorRRR((s/usr/lib/python2.6/urllib.pytretry_proxy_http_basic_auths

.
cCst|\}}d||}|id}t|\}}	t|	\}	}
|	idd}|	|}	|i|	||\}}
|p|
pdSt|dddt|
ddd|	}	d|	|
|id<|djo|i|S|i||SdS(Nshttps://RRiRORjR(RR#RRR	R%RR'(R6R(RR)ReRfRRcRbRdR
RRR((s/usr/lib/python2.6/urllib.pytretry_proxy_https_basic_auths

.
c
Cst|\}}|idd}||}|i|||\}}|p|pdSt|dddt|ddd|}d||}	|djo|i|	S|i|	|SdS(NRiRORjRshttp://(RRR	R%RR'(
R6R(RR)ReRfRRRR((s/usr/lib/python2.6/urllib.pytretry_http_basic_auths
.
c
Cst|\}}|idd}||}|i|||\}}|p|pdSt|dddt|ddd|}d||}	|djo|i|	S|i|	|SdS(NRiRORjRshttps://(RRR	R%RR'(
R6R(RR)ReRfRRRR((s/usr/lib/python2.6/urllib.pytretry_https_basic_auths
.
icCs|d|i}||ijo$|o|i|=qH|i|Sn|i||\}}|p|o||f|i|<n||fS(NR(RRtprompt_user_passwd(R6ReRtclear_cacheRRR((s/usr/lib/python2.6/urllib.pyR	sc	Cshddk}y@td||f}|id|||f}||fSWntj
o	HdSXdS(s#Override this in a GUI environment!iNsEnter username for %s at %s: s#Enter password for %s in %s at %s: (NN(tgetpasst	raw_inputtKeyboardInterruptR%(R6ReRRRR((s/usr/lib/python2.6/urllib.pyRs	
	N(R8R9RR4RR%RRRRRRRRRR
RR	R(((s/usr/lib/python2.6/urllib.pyRgs 			


cCs$tdjotidantS(s8Return the IP address of the magic hostname 'localhost'.RN(t
_localhostR%R[R(((s/usr/lib/python2.6/urllib.pyR$s
cCs*tdjotitiantS(s*Return the IP address of the current host.N(t	_thishostR%R[Rtgethostname(((s/usr/lib/python2.6/urllib.pyR,s
cCs*tdjoddk}|iantS(s1Return the set of errors raised by the FTP class.iN(t
_ftperrorsR%Rt
all_errors(R((s/usr/lib/python2.6/urllib.pyR4s

cCs}tdjolddk}yddkl}Wn#tj
oddkl}nX|i|datiintS(s)Return an empty mimetools.Message object.iN(Ri(	t
_noheadersR%RRRRRRaRH(RR((s/usr/lib/python2.6/urllib.pyt	noheaders=s
RcBsAeZdZeidZdZdZdZdZ	RS(s;Class used by open_ftp() for cache of open FTP connections.cCsD||_||_||_||_||_||_|idS(N(RRReRRttimeouttinit(R6RRReRRR((s/usr/lib/python2.6/urllib.pyR4Ps						cCsddk}d|_|i|_|ii|i|i|i|ii|i	|i
x!|iD]}|ii|qfWdS(Nii(
RtbusytFTPtftptconnectReRRtloginRRRtcwd(R6Rtdir((s/usr/lib/python2.6/urllib.pyRZs	
c	Csddk}|i|djod}d}nd|}d}y|ii|Wn0|ij
o!|i|ii|nXd}|o~|ovy d|}|ii|}Wq|ij
o@}t	|d	 d
jo t
d|ftidqqXn|p|iid|o|ii
}zOy|ii|Wn4|ij
o%}t
d|ftidnXWd|ii|Xd
|}nd}|ii|}nd|_t|did|i|dfS(NiRRsTYPE AisTYPE isRETR it550s	ftp errorisLIST tLISTRP(RR(RtendtransferRtvoidcmdRRR%tntransfercmdt
error_permRR3R]R^tpwdR"Rtaddclosehooktmakefile(	R6RKRVRtcmdtisdirtconntreasonR*((s/usr/lib/python2.6/urllib.pyRcsH





)%	cCsF|ipdSd|_y|iiWntj
onXdS(Ni(RRtvoidrespR(R6((s/usr/lib/python2.6/urllib.pyR&s
	cCs8|iy|iiWntj
onXdS(N(R&RRHR(R6((s/usr/lib/python2.6/urllib.pyRHs

(
R8R9RR[t_GLOBAL_DEFAULT_TIMEOUTR4RRR&RH(((s/usr/lib/python2.6/urllib.pyRMs				(		taddbasecBs)eZdZdZdZdZRS(s(Base class for addinfo and addclosehook.cCs||_|ii|_|ii|_t|ido|ii|_nt|ido|ii|_n
d|_t|ido9|ii|_t|ido|ii|_qndS(Nt	readlinestfilenocSsdS(N(R%(((s/usr/lib/python2.6/urllib.pyt<lambda>st__iter__tnext(RaRstreadlineR=R4R5R7R8(R6Ra((s/usr/lib/python2.6/urllib.pyR4s	cCs d|iit||ifS(Ns<%s at %r whose fp = %r>(t	__class__R8tidRa(R6((s/usr/lib/python2.6/urllib.pyt__repr__scCsLd|_d|_d|_d|_|io|iind|_dS(N(R%RsR9R4R5RaRH(R6((s/usr/lib/python2.6/urllib.pyRHs				
(R8R9RR4R<RH(((s/usr/lib/python2.6/urllib.pyR3s		R+cBs eZdZdZdZRS(s*Class to add a close hook to an open file.cGs&ti||||_||_dS(N(R3R4t	closehookthookargs(R6RaR=R>((s/usr/lib/python2.6/urllib.pyR4s	cCsAti||io&|i|id|_d|_ndS(N(R3RHR=R>R%(R6((s/usr/lib/python2.6/urllib.pyRHs


	(R8R9RR4RH(((s/usr/lib/python2.6/urllib.pyR+s	taddinfocBs eZdZdZdZRS(s.class to add an info() method to an open file.cCsti||||_dS(N(R3R4R`(R6RaR`((s/usr/lib/python2.6/urllib.pyR4scCs|iS(N(R`(R6((s/usr/lib/python2.6/urllib.pyRls(R8R9RR4Rl(((s/usr/lib/python2.6/urllib.pyR?s	RUcBs5eZdZddZdZdZdZRS(s9class to add info() and geturl() methods to an open file.cCs/ti||||_||_||_dS(N(R3R4R`R(tcode(R6RaR`R(R@((s/usr/lib/python2.6/urllib.pyR4s		cCs|iS(N(R`(R6((s/usr/lib/python2.6/urllib.pyRlscCs|iS(N(R@(R6((s/usr/lib/python2.6/urllib.pytgetcodescCs|iS(N(R((R6((s/usr/lib/python2.6/urllib.pytgeturlsN(R8R9RR%R4RlRARB(((s/usr/lib/python2.6/urllib.pyRUs
		cCsdS(Ni((tx((s/usr/lib/python2.6/urllib.pyt_is_unicodescCs
t|tS(N(Rtunicode(RC((s/usr/lib/python2.6/urllib.pyRDscCsXt|oGy|id}WqTtj
o!tdt|dqTXn|S(stoBytes(u"URL") --> 'URL'.tASCIIsURL s contains non-ASCII characters(RDtencodetUnicodeErrortrepr(R(((s/usr/lib/python2.6/urllib.pyRTs
cCsn|i}|d djo(|ddjo|dd!i}n|d djo|di}n|S(s8unwrap('<URL:type://host/path>') --> 'type://host/path'.it<it>isURL:(R(R(((s/usr/lib/python2.6/urllib.pyRs"cCsztdjoddk}|idanti|}|o.|id}|i|t|dfSd|fS(s:splittype('type:opaquestring') --> 'type', 'opaquestring'.iNs
^([^/:]+):i(t	_typeprogR%RtcompileRtgroupRRt(R(RRR((s/usr/lib/python2.6/urllib.pyRs
cCs]tdjoddk}|idanti|}|o|iddSd|fS(s;splithost('//host[:port]/path') --> 'host[:port]', '/path'.iNs^//([^/?]*)(.*)$ii(t	_hostprogR%RRMRRN(R(RR((s/usr/lib/python2.6/urllib.pyRs
cCsftdjoddk}|idanti|}|ott|iddSd|fS(sJsplituser('user[:passwd]@host[:port]') --> 'user[:passwd]', 'host[:port]'.iNs^(.*)@(.*)$ii(t	_userprogR%RRMRtmapRRN(ReRR((s/usr/lib/python2.6/urllib.pyR+s
cCs]tdjoddk}|idanti|}|o|iddS|dfS(s/splitpasswd('user:passwd') -> 'user', 'passwd'.iNs^([^:]*):(.*)$ii(t_passwdprogR%RRMRRN(RRR((s/usr/lib/python2.6/urllib.pyR7s
cCs]tdjoddk}|idanti|}|o|iddS|dfS(s*splitport('host:port') --> 'host', 'port'.iNs^(.*):([0-9]+)$ii(t	_portprogR%RRMRRN(ReRR((s/usr/lib/python2.6/urllib.pyRDs
cCstdjoddk}|idanti|}|oc|idd\}}y$|p
tdnt|}Wntj
o
d}nX||fS||fS(sSplit host and port, returning numeric port.
    Return given default port if no ':' found; defaults to -1.
    Return numerical port if a valid number are found after ':'.
    Return None if ':' but not a valid number.iNs^(.*):(.*)$iis	no digits(t
_nportprogR%RRMRRNRRr(RetdefportRRRtnport((s/usr/lib/python2.6/urllib.pyRPs

cCs]tdjoddk}|idanti|}|o|iddS|dfS(s/splitquery('/path?query') --> '/path', 'query'.iNs^(.*)\?([^?]*)$ii(t
_queryprogR%RRMRRN(R(RR((s/usr/lib/python2.6/urllib.pyRfs
cCs]tdjoddk}|idanti|}|o|iddS|dfS(s)splittag('/path#tag') --> '/path', 'tag'.iNs^(.*)#([^#]*)$ii(t_tagprogR%RRMRRN(R(RR((s/usr/lib/python2.6/urllib.pyR
rs
cCs!|id}|d|dfS(sksplitattr('/path;attr1=value1;attr2=value2;...') ->
        '/path', ['attr1=value1', 'attr2=value2', ...].Rii(R(R(twords((s/usr/lib/python2.6/urllib.pyR}scCs]tdjoddk}|idanti|}|o|iddS|dfS(s-splitvalue('attr=value') --> 'attr', 'value'.iNs^([^=]*)=(.*)$ii(t
_valueprogR%RRMRRN(RRR((s/usr/lib/python2.6/urllib.pyRs
t0123456789ABCDEFabcdefccsGx@|]9}x0tD](}||tt||dfVqWqWdS(iN(t_hexdigtchrRr(t.0Rtb((s/usr/lib/python2.6/urllib.pys	<genexpr>s	c	Cs|id}xtdt|D]}||}yt|d |d||<Wq%tj
od|||<q%tj
o,tt|d d|d||<q%Xq%Wdi|S(s"unquote('abc%20def') -> 'abc def'.t%iiiRj(	RtxrangeRtt	_hextochrtKeyErrortUnicodeDecodeErrortunichrRrR(tstresRtitem((s/usr/lib/python2.6/urllib.pyRs
.cCs|idd}t|S(s%unquote('%7e/abc+def') -> '~/abc def't+t (RWR(Rf((s/usr/lib/python2.6/urllib.pyR	ssAABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_.-RcCs|tf}yt|}Wnrtj
of|t7}h}xBtdD]4}t|}||jo|pd|||<qHW|t|<nXt|i|}di|S(squote('abc def') -> 'abc%20def'

    Each part of a URL, e.g. the path info, the query, etc., has a
    different set of reserved characters that must be quoted.

    RFC 2396 Uniform Resource Identifiers (URI): Generic Syntax lists
    the following reserved characters.

    reserved    = ";" | "/" | "?" | ":" | "@" | "&" | "=" | "+" |
                  "$" | ","

    Each of these characters is reserved in some component of a URL,
    but not necessarily in all of them.

    By default, the quote function is intended for quoting the path
    section of a URL.  Thus, it will not encode '/'.  This character
    is reserved, but in typical usage the quote function is being
    called on a path where the existing slash characters are used as
    reserved characters.
    is%%%02XRj(talways_safeR/RctrangeR]RQt__getitem__R(RfROtcachekeytsafe_mapRtcRg((s/usr/lib/python2.6/urllib.pyRs

&RjcCs>d|jo$t||d}|iddSt||S(s9Quote the query fragment of a URL; replacing ' ' with '+'RjRi(RRW(RfRO((s/usr/lib/python2.6/urllib.pyRs
ic

Cst|do|i}nhy0t|ot|dto
tnWn4tj
o(ti\}}}td|nXg}|pTxl|D]E\}}tt	|}tt	|}|i
|d|qWnx|D]\}}tt	|}t|t	o%t|}|i
|d|qt|o1t|idd}|i
|d|qyt|}Wn:tj
o.tt	|}|i
|d|qXx/|D]'}	|i
|dtt	|	qWqWdi
|S(svEncode a sequence of two-element tuples or dictionary into a URL query string.

    If any values in the query arg are sequences and doseq is true, each
    sequence element is converted to a separate parameter.

    If the query arg is a sequence of two-element tuples, the order of the
    parameters in the output will match the order of parameters in the
    input.
    titemsis1not a valid non-string sequence or mapping objectRRFRWt&(R=RqRtRttuplet	TypeErrorR]R^RRRLRDRGR(
tquerytdoseqttytvattbtlRRRCtelt((s/usr/lib/python2.6/urllib.pyR
sB"
)cCs`h}xStiiD]B\}}|i}|o#|ddjo|||d <qqW|S(sReturn a dictionary of scheme -> proxy server URL mappings.

    Scan the environment for variables named <scheme>_proxy;
    this seems to be the standard convention.  If you need a
    different way, you can pass a proxies dictionary to the
    [Fancy]URLopener constructor.

    it_proxy(RCtenvironRqR(R#RgR((s/usr/lib/python2.6/urllib.pytgetproxies_environments	cCstiiddptiidd}|djodSt|\}}xC|idD]2}|o%|i|p|i|odSq_WdS(sTest if proxies should not be used for a particular host.

    Checks the environment for a variable named no_proxy, which should
    be a list of DNS suffixes separated by commas, or '*' for all hosts.
    tno_proxyRjtNO_PROXYt*iRi(RCR}R?RRtendswith(ReRthostonlyRRg((s/usr/lib/python2.6/urllib.pytproxy_bypass_environment"s+
'	tdarwin(t_get_proxy_settingst_get_proxiesc
Csddk}ddk}ddkl}t|\}}d}t}d|jo|dotSnd}x5|idd
D]!}	|	pqn|id|	}
|
dj	o|djo?y|i	|}||}Wq|i
j
o
qqXn||
id	}|
id
}|djo$d|
id	idd	}nt
|d	}d|}||?||?jotSq|||	otSqWtS(s
        Return True iff this host shouldn't be accessed using a proxy

        This function uses the MacOSX framework SystemConfiguration
        to fetch the proxy information.
        iN(tfnmatchcSs{|id}tt|}t|djo|ddddgd }n|dd>|dd>B|dd>B|d	BS(
Nt.iiiiiiii(RRQRrRt(tipAddrtparts((s/usr/lib/python2.6/urllib.pytip2numFs
Rtexclude_simplet
exceptionss(\d+(?:\.\d+)*)(/\d+)?iiii ((RR[RRRRR%R?RRR\RNtcountRrtFalse(
ReRR[RRRRtproxy_settingsthostIPRtmtbasetmask((s/usr/lib/python2.6/urllib.pytproxy_bypass_macosx_sysconf9sB		
	


$
		cCstS(sReturn a dictionary of scheme -> proxy server URL mappings.

        This function uses the MacOSX framework SystemConfiguration
        to fetch the proxy information.
        (R(((s/usr/lib/python2.6/urllib.pytgetproxies_macosx_sysconfuscCs#tot|St|SdS(N(R~RR(Re((s/usr/lib/python2.6/urllib.pyRs
cCstptS(N(R~R(((s/usr/lib/python2.6/urllib.pyRsc	Csyh}yddk}Wntj
o|SXy)|i|id}|i|dd}|ot|i|dd}d|josx|idD][}|idd	\}}ddk}|id
|pd||f}n|||<qWqK|d d
jo||d<qKd||d<d||d<d||d<n|i	Wnt
ttfj
onX|S(sxReturn a dictionary of scheme -> proxy server URL mappings.

        Win32 uses the registry to store proxies.

        iNs;Software\Microsoft\Windows\CurrentVersion\Internet SettingstProxyEnableitProxyServerRRis^([^/:]+)://s%s://%sishttp:Rs	http://%ss
https://%sRsftp://%sR(
t_winregRtOpenKeytHKEY_CURRENT_USERtQueryValueExRRRRtClosetWindowsErrorRRt(	R#RtinternetSettingstproxyEnabletproxyServertptprotocoltaddressR((s/usr/lib/python2.6/urllib.pytgetproxies_registrys<		

cCstptS(sReturn a dictionary of scheme -> proxy server URL mappings.

        Returns settings gathered from the environment, if specified,
        or the registry.

        (R~R(((s/usr/lib/python2.6/urllib.pyRsc
CsTyddk}ddk}Wntj
odSXyK|i|id}|i|dd}t|i|dd}Wntj
odSX|p|odSt|\}}|g}y1t	i
|}||jo|i|nWnt	ij
onXy1t	i
|}	|	|jo|i|	nWnt	ij
onX|id}d}
xi|
t|joU||
djo6dd	t	it	i
t	ig||
|
d
+n|
d
7}
qqWxs|D]k}|idd}|id
d}|idd}x,|D]$}|i|||iod
Sq$WqWdS(Niis;Software\Microsoft\Windows\CurrentVersion\Internet SettingsRt
ProxyOverrideRs<local>Rs	127.0.0.1iRs\.Rs.*t?(RRRRRRRRRR[RRLR\tgetfqdnRRtRRWRR(
ReRRRRt
proxyOverridetrawHostRtaddrtfqdnRttesttval((s/usr/lib/python2.6/urllib.pytproxy_bypass_registrysf		
	

	!
cCs#tot|St|SdS(sReturn a dictionary of scheme -> proxy server URL mappings.

        Returns settings gathered from the environment, if specified,
        or the registry.

        N(R~RR(Re((s/usr/lib/python2.6/urllib.pyRs
cCsd}x$tdD]}|t|}qW|d}ti}t|}t|}ti}||jo	dGHnt|GHt|GHt|GHt||dGdGHdS(NRjiisWrong!itsec(RlR]RRRRItround(RfRtt0tqstuqstt1((s/usr/lib/python2.6/urllib.pyttest1
s


	cCsd|||fGHdS(Ns0Block number: %d, Block size: %d, Total size: %d((Rt	blocksizet	totalsize((s/usr/lib/python2.6/urllib.pyR-sc	Cs9|p:dddddg}ttdo|idqAnzx|D]}dG|GdGHt|dt\}}|GH|o6d
GHx%|iD]}|dG||GHqWd
GHnt|d}|i}~d
|jo(t	i
dd}|i|d
}n|GHd\}}qKWddGHWdtXdS(Ns/etc/passwdsfile:/etc/passwdsfile://localhost/etc/passwdsftp://ftp.gnu.org/pub/READMEs http://www.python.org/index.htmlRs!https://synergy.as.cmu.edu/~geek/RRi
s======RRPs
Rji(s
----------s
----------(NN(
R=RRLRR%R-RR'Rststringt	maketranst	translateR(RMR(tfnRRRaR)ttable((s/usr/lib/python2.6/urllib.pyR#s<	

	

c	Csddk}ddk}y#|i|idd\}}Wn#|ij
o}|GHdGHdSXd}xO|D]G\}}|djo|d}n|djodGHd	Gd
GHdSqnW|o&|djotnt|n2|p	dGHnx|D]}t|iGqWdS(NiitthsUse -h for helpis-ts-hs&Usage: python urllib.py [-t] [url ...]s-t runs self-test;s'otherwise, contents of urls are printed(tgetoptR]targvR\RRRRs(	RR]toptsRMRhtttoRR(((s/usr/lib/python2.6/urllib.pytmainCs4#

	
	t__main__(`RRR[RCRR]turlparseRRt__all__RRRgtmacurl2pathRRt
nturl2patht
rourl2pathR%R&RRRtsslRRRR3R2R1RRRRRRRRRRRR3R+R?RUREt	NameErrorRDRTRRLRRORRPRRRRRSRRTRRWRRXR
RRZRR\tdictRbRR	RkR/RRR
R~Rtplatformt_scproxyRRRRRRRRRR-RRR8(((s/usr/lib/python2.6/urllib.pyt<module>s			
	
				N
"				
									
	"@			<	
	
	.			;
		 	


Youez - 2016 - github.com/yon3zu
LinuXploit