Uname: Linux web3.us.cloudlogin.co 5.10.226-xeon-hst #2 SMP Fri Sep 13 12:28:44 UTC 2024 x86_64
Software: Apache
PHP version: 8.1.31 [ PHP INFO ] PHP os: Linux
Server Ip: 162.210.96.117
Your Ip: 18.224.72.25
User: edustar (269686) | Group: tty (888)
Safe Mode: OFF
Disable Function:
NONE

name : client.cpython-32.pyc
l
��bc@s�dZddlZddlZddlZddlZddlZddlZddlm	Z	ddl
Z
dddddd	d
ddd
ddddddgZdZdZ
dZdZdZdZdZdZdZdZdZdZd Zd!Zd"Zd#Zd$Zd%Zd&Zd'Zd(Z d)Z!d*Z"d+Z#d,Z$d-Z%d.Z&d/Z'd0Z(d1Z)d2Z*d3Z+d4Z,d5Z-d6Z.d7Z/d8Z0d9Z1d:Z2d;Z3d<Z4d=Z5d>Z6d?Z7d@Z8dAZ9dBZ:dCZ;dDZ<dEZ=dFZ>dGZ?dHZ@dIZAdJZBi)dKd6dLd6dMd6dNd6dOd6dPd 6dQd!6dRd"6dSd#6dTd&6dUd'6dVd(6dWd)6dXd*6dYd+6dZd[6d\d,6d]d-6d^d.6d_d/6d`d06dad16dbd26dcd36ddd46ded56dfd66dgd76dhd86did96djd:6dkd;6dld<6dmd=6dnd>6dodC6dpdD6dqdE6drdF6dsdG6dtdH6ZCduZDdvZEdZFGdw�dxejGjH�ZIeIdy�ZJeK�ZLGdz�dejM�ZNGd{�d�ZOyddlPZPWneQk
r�Yn!XGd|�d}eO�ZRejSd}�Gd~�deT�ZUGd�deU�ZVGd��deU�ZWGd��deU�ZXGd��d	eU�ZYGd��d
eU�ZZGd��deU�Z[Gd��d
eU�Z\Gd��de\�Z]Gd��de\�Z^Gd��de\�Z_Gd��deU�Z`Gd��d�eU�ZaeUZbdS(�u�	HTTP/1.1 client library

<intro stuff goes here>
<other stuff, too>

HTTPConnection goes through a number of "states", which define when a client
may legally make another request or fetch the response for a particular
request. This diagram details these state transitions:

    (null)
      |
      | HTTPConnection()
      v
    Idle
      |
      | putrequest()
      v
    Request-started
      |
      | ( putheader() )*  endheaders()
      v
    Request-sent
      |
      | response = getresponse()
      v
    Unread-response   [Response-headers-read]
      |\____________________
      |                     |
      | response.read()     | putrequest()
      v                     v
    Idle                  Req-started-unread-response
                     ______/|
                   /        |
   response.read() |        | ( putheader() )*  endheaders()
                   v        v
       Request-started    Req-sent-unread-response
                            |
                            | response.read()
                            v
                          Request-sent

This diagram presents the following rules:
  -- a second request may not be started until {response-headers-read}
  -- a response [object] cannot be retrieved until {request-sent}
  -- there is no differentiation between an unread response body and a
     partially read response body

Note: this enforcement is applied by the HTTPConnection class. The
      HTTPResponse class does not enforce this state machine, which
      implies sophisticated clients may accelerate the request/response
      pipeline. Caution should be taken, though: accelerating the states
      beyond the above pattern may imply knowledge of the server's
      connection-close behavior for certain requests. For example, it
      is impossible to tell whether the server will close the connection
      UNTIL the response headers have been read; this means that further
      requests cannot be placed into the pipeline until it is known that
      the server will NOT be closing the connection.

Logical State                  __state            __response
-------------                  -------            ----------
Idle                           _CS_IDLE           None
Request-started                _CS_REQ_STARTED    None
Request-sent                   _CS_REQ_SENT       None
Unread-response                _CS_IDLE           <response_class>
Req-started-unread-response    _CS_REQ_STARTED    <response_class>
Req-sent-unread-response       _CS_REQ_SENT       <response_class>
iN(uurlsplituHTTPResponseuHTTPConnectionu
HTTPExceptionuNotConnecteduUnknownProtocoluUnknownTransferEncodinguUnimplementedFileModeuIncompleteReadu
InvalidURLuImproperConnectionStateuCannotSendRequestuCannotSendHeaderuResponseNotReadyu
BadStatusLineuerroru	responsesiPi�uUNKNOWNuIdleuRequest-starteduRequest-sentidieifi�i�i�i�i�i�i�i�i�i,i-i.i/i0i1i3i�i�i�i�i�i�i�i�i�i�i�i�i�i�i�i�i�i�i�i�i�i�i�i�i�i�i�i�i�i�uContinueuSwitching ProtocolsuOKuCreateduAccepteduNon-Authoritative Informationu
No Contentu
Reset ContentuPartial ContentuMultiple ChoicesuMoved PermanentlyuFoundu	See OtheruNot Modifiedu	Use Proxyu(Unused)i2uTemporary RedirectuBad RequestuUnauthorizeduPayment Requiredu	Forbiddenu	Not FounduMethod Not AlloweduNot AcceptableuProxy Authentication RequireduRequest TimeoutuConflictuGoneuLength RequireduPrecondition FaileduRequest Entity Too LargeuRequest-URI Too LonguUnsupported Media TypeuRequested Range Not SatisfiableuExpectation FaileduInternal Server ErroruNot ImplementeduBad GatewayuService UnavailableuGateway TimeoutuHTTP Version Not SupportediicBs|EeZd�ZdS(cCs�|j�d}t|�}g}d}xn|j�D]`}|d|�j�|kr`d}n|dd�j�sd}n|r5|j|�q5q5W|S(u�Find all header lines matching a given header name.

        Look through the list of headers and find all lines matching a given
        header name (and their continuation lines).  A list of the lines is
        returned, without interpretation.  If the header does not occur, an
        empty list is returned.  If the header occurs multiple times, all
        occurrences are returned.  Case is not important in the header name.

        u:iNi(ulowerulenukeysuisspaceuappend(uselfunameunulstuhituline((u2/usr/local/python-3.2/lib/python3.2/http/client.pyugetallmatchingheaders�s
		N(u__name__u
__module__ugetallmatchingheaders(u
__locals__((u2/usr/local/python-3.2/lib/python3.2/http/client.pyuHTTPMessage�s
uHTTPMessagecCs�g}xy|jtd�}t|�tkr=td��n|j|�t|�tkrotdt��n|d	kr	Pq	q	dj|�jd�}t	j
jd|�j|�S(
uGParses only RFC2822 headers from a file pointer.

    email Parser wants to see strings rather than bytes.
    But a TextIOWrapper around self.rfile would buffer too many bytes
    from the stream, bytes which we later need to read as bytes.
    So we read the correct bytes here, as bytes, for email Parser
    to parse.

    iuheader lineugot more than %d headerss
s
su
iso-8859-1u_class(s
s
s(
ureadlineu_MAXLINEulenuLineTooLonguappendu_MAXHEADERSu
HTTPExceptionujoinudecodeuemailuparseruParseruparsestr(ufpu_classuheadersulineuhstring((u2/usr/local/python-3.2/lib/python3.2/http/client.pyu
parse_headers�s

cs�|EeZdeddd�Zd�Zd�Zd�Zd�Z�fd�Z	�fd�Z
d�Zd	�Zdd
�Z
d�Zd�Zd
�Zdd�Zd�Zd�Zd�Zd�Zd�Z�S(icCs�|jd�|_||_|tk	r=tjdtd�n||_d|_	|_
t|_t|_
t|_t|_t|_t|_t|_dS(Nurbuithe 'strict' argument isn't supported anymore; http.client now always assumes HTTP/1.x compliant servers.i(umakefileufpu
debuglevelu_strict_sentineluwarningsuwarnuDeprecationWarningu_methoduNoneuheadersumsgu_UNKNOWNuversionustatusureasonuchunkedu
chunk_leftulengthu
will_close(uselfusocku
debuglevelustrictumethoduurl((u2/usr/local/python-3.2/lib/python3.2/http/client.pyu__init__s		
							cCsxt|jjtd�d�}t|�tkr@td��n|jdkretdt|��n|szt	|��ny|j
dd�\}}}WnOtk
r�y"|j
dd�\}}d}Wntk
r�d}YnXYnX|j
d�s|j�t	|��ny7t|�}|d	ks:|d
krIt	|��nWntk
rjt	|��YnX|||fS(Niu
iso-8859-1ustatus lineiureply:iuuHTTP/idi�(ustrufpureadlineu_MAXLINEulenuLineTooLongu
debugleveluprinturepru
BadStatusLineusplituNoneu
ValueErroru
startswithu_close_connuint(uselfulineuversionustatusureason((u2/usr/local/python-3.2/lib/python3.2/http/client.pyu_read_status7s2




cCs�|jdk	rdSx�|j�\}}}|tkr;Pnxo|jjtd�}t|�tkrutd��n|j	�}|s�Pn|j
dkr>td|�q>q>q||_|_
|j	�|_|dkr�d|_n'|jd�rd	|_nt|��t|j�|_|_|j
dkr`x'|jD]}td|d
d�q@Wn|jjd�}|r�|j�d
kr�d|_d|_n	d|_|j�|_d|_|jjd�}|jjd�}|rC|jrCyt|�|_Wntk
r$d|_YqLX|jdkrLd|_qLn	d|_|tks�|t ks�d|ko{dkns�|j!dkr�d|_n|jr�|jr�|jdkr�d|_ndS(Niuheader lineiuheader:uHTTP/1.0uHTTP/0.9i
uHTTP/1.iuendu utransfer-encodinguchunkeducontent-lengthidi�uHEAD(uHTTP/1.0uHTTP/0.9TF("uheadersuNoneu_read_statusuCONTINUEufpureadlineu_MAXLINEulenuLineTooLongustripu
debugleveluprintucodeustatusureasonuversionu
startswithuUnknownProtocolu
parse_headersumsgugetuloweruTrueuchunkedu
chunk_leftuFalseu_check_closeu
will_closeulengthuintu
ValueErroru
NO_CONTENTuNOT_MODIFIEDu_method(uselfuversionustatusureasonuskipuhdrutr_enculength((u2/usr/local/python-3.2/lib/python3.2/http/client.pyubeginWsf			
	

cCs�|jjd�}|jdkrS|jjd�}|rOd|j�krOdSdS|jjd�ridS|r�d|j�kr�dS|jjd�}|r�d|j�kr�dSdS(Nu
connectioniucloseu
keep-aliveuproxy-connectionTF(uheadersugetuversionuloweruTrueuFalse(uselfuconnupconn((u2/usr/local/python-3.2/lib/python3.2/http/client.pyu_check_close�scCs |j}d|_|j�dS(N(ufpuNoneuclose(uselfufp((u2/usr/local/python-3.2/lib/python3.2/http/client.pyu_close_conn�s		cs't�j�|jr#|j�ndS(N(usuperucloseufpu_close_conn(uself(u	__class__(u2/usr/local/python-3.2/lib/python3.2/http/client.pyuclose�s
	cs*t�j�|jr&|jj�ndS(N(usuperuflushufp(uself(u	__class__(u2/usr/local/python-3.2/lib/python3.2/http/client.pyuflush�s
	cCsdS(NT(uTrue(uself((u2/usr/local/python-3.2/lib/python3.2/http/client.pyureadable�scCs
|jdkS(u!True if the connection is closed.N(ufpuNone(uself((u2/usr/local/python-3.2/lib/python3.2/http/client.pyuisclosed�scCsU|jdkrdS|jdkr0|j�dS|jrF|j|�S|dkr�|jdkrs|jj�}nAy|j|j�}Wnt	k
r�|j��YnXd|_|j�|S|jdk	r�||jkr�|j}q�n|jj|�}|s|j�n=|jdk	rQ|jt
|�8_|jsQ|j�qQn|S(NsuHEADi(ufpuNoneu_methodu_close_connuchunkedu
_read_chunkedulengthureadu
_safe_readuIncompleteReadulen(uselfuamtus((u2/usr/local/python-3.2/lib/python3.2/http/client.pyuread�s:
	


	

	cCs<|jtkst�|j}g}x�|dkr�|jjtd�}t|�tkrjt	d��n|j
d�}|dkr�|d|�}nyt|d�}Wn1tk
r�|j
�tdj|���YnX|dkr�Pq�n|dkr|j|j|��n�||krS|j|j|��|||_dj|�S||kr�|j|j|��|jd�d|_dj|�S|j|j|��||8}|jd�d}q'xT|jjtd�}t|�tkrt	d��n|sPn|dkr�Pq�q�|j
�dj|�S(Niu
chunk sizes;iisiutrailer lines
s
(s
s
s(uchunkedu_UNKNOWNuAssertionErroru
chunk_leftuNoneufpureadlineu_MAXLINEulenuLineTooLongufinduintu
ValueErroru_close_connuIncompleteReadujoinuappendu
_safe_read(uselfuamtu
chunk_leftuvalueulineui((u2/usr/local/python-3.2/lib/python3.2/http/client.pyu
_read_chunkedsV	




	


	
cCsg}xi|dkrq|jjt|t��}|sQtdj|�|��n|j|�|t|�8}q	Wdj|�S(uVRead the number of bytes requested, compensating for partial reads.

        Normally, we have a blocking socket, but a read() can be interrupted
        by a signal (resulting in a partial read).

        Note that we cannot distinguish between EOF and an interrupt when zero
        bytes have been read. IncompleteRead() will be raised in this
        situation.

        This function should be used when <amt> bytes "should" be present for
        reading. If the bytes are truly not available (due to EOF), then the
        IncompleteRead exception can be used to detect the problem.
        is(ufpureaduminu	MAXAMOUNTuIncompleteReadujoinuappendulen(uselfuamtusuchunk((u2/usr/local/python-3.2/lib/python3.2/http/client.pyu
_safe_readOs
cCs
|jj�S(N(ufpufileno(uself((u2/usr/local/python-3.2/lib/python3.2/http/client.pyufilenofscCsg|jdkrt��n|jj|�p0|}t|t�sRt|d�rV|Sdj|�SdS(Nu__iter__u, (uheadersuNoneuResponseNotReadyuget_allu
isinstanceustruhasattrujoin(uselfunameudefaultuheaders((u2/usr/local/python-3.2/lib/python3.2/http/client.pyu	getheaderiscCs.|jdkrt��nt|jj��S(u&Return list of (header, value) tuples.N(uheadersuNoneuResponseNotReadyulistuitems(uself((u2/usr/local/python-3.2/lib/python3.2/http/client.pyu
getheadersrscCs|S(N((uself((u2/usr/local/python-3.2/lib/python3.2/http/client.pyu__iter__zscCs|jS(N(uheaders(uself((u2/usr/local/python-3.2/lib/python3.2/http/client.pyuinfoscCs|jS(N(uurl(uself((u2/usr/local/python-3.2/lib/python3.2/http/client.pyugeturl�scCs|jS(N(ustatus(uself((u2/usr/local/python-3.2/lib/python3.2/http/client.pyugetcode�sN(u__name__u
__module__u_strict_sentineluNoneu__init__u_read_statusubeginu_check_closeu_close_connucloseuflushureadableuisclosedureadu
_read_chunkedu
_safe_readufilenou	getheaderu
getheadersu__iter__uinfougeturlugetcode(u
__locals__((u	__class__u2/usr/local/python-3.2/lib/python3.2/http/client.pyuHTTPResponses&
	"	 	P		
		
-	:							cBs�|EeZdZdZeZeZdZdZ	deej
dd�Zddd�Zd�Zd�Zd�Zd	�Zd
�Zd�Zd�Zdd
�Zddd�Zd�Zdd�Zdid�Zd�Zd�Zd�ZdS(iuHTTP/1.1iicCs�|tk	r"tjdtd�n||_||_d|_g|_d|_	t
|_d|_d|_
d|_i|_|j||�dS(Nuithe 'strict' argument isn't supported anymore; http.client now always assumes HTTP/1.x compliant servers.i(u_strict_sentineluwarningsuwarnuDeprecationWarningutimeoutusource_addressuNoneusocku_bufferu_HTTPConnection__responseu_CS_IDLEu_HTTPConnection__stateu_methodu_tunnel_hostu_tunnel_portu_tunnel_headersu
_set_hostport(uselfuhostuportustrictutimeoutusource_address((u2/usr/local/python-3.2/lib/python3.2/http/client.pyu__init__�s	
										cCs5||_||_|r$||_n
|jj�dS(u� Sets up the host and the port for the HTTP CONNECT Tunnelling.

        The headers argument should be a mapping of extra HTTP headers
        to send with the CONNECT request.
        N(u_tunnel_hostu_tunnel_portu_tunnel_headersuclear(uselfuhostuportuheaders((u2/usr/local/python-3.2/lib/python3.2/http/client.pyu
set_tunnel�s
		c
Cs|dkr|jd�}|jd�}||kr�yt||dd��}WnVtk
r�||dd�dkr�|j}ntd||dd���YnX|d|�}n	|j}|r|ddkr|ddkr|dd	�}qn||_||_dS(
Nu:u]iuunonnumeric port: '%s'iu[i����i����(uNoneurfinduintu
ValueErrorudefault_portu
InvalidURLuhostuport(uselfuhostuportuiuj((u2/usr/local/python-3.2/lib/python3.2/http/client.pyu
_set_hostport�s 
#	&	cCs
||_dS(N(u
debuglevel(uselfulevel((u2/usr/local/python-3.2/lib/python3.2/http/client.pyuset_debuglevel�scCsd|j|j|j�d|j|jf}|jd�}|j|�xI|jj�D]8\}}d||f}|jd�}|j|�qXW|jd�|j	|j
d|j�}|j�\}}	}
|	dkr	|j
�tjd|	|
j�f��nxT|jjtd	�}t|�tkrCtd
��n|sMPn|d
krPqqdS(NuCONNECT %s:%d HTTP/1.0
uasciiu%s: %s
ulatin1s
umethodi�uTunnel connection failed: %d %siuheader lines
s(s
s
s(u
_set_hostportu_tunnel_hostu_tunnel_portuhostuportuencodeusendu_tunnel_headersuitemsuresponse_classusocku_methodu_read_statusucloseusocketuerrorustripufpureadlineu_MAXLINEulenuLineTooLong(uselfuconnect_stru
connect_bytesuheaderuvalueu
header_struheader_bytesuresponseuversionucodeumessageuline((u2/usr/local/python-3.2/lib/python3.2/http/client.pyu_tunnel�s.


cCsDtj|j|jf|j|j�|_|jr@|j�ndS(u3Connect to the host and port specified in __init__.N(	usocketucreate_connectionuhostuportutimeoutusource_addressusocku_tunnel_hostu_tunnel(uself((u2/usr/local/python-3.2/lib/python3.2/http/client.pyuconnect�s	cCsQ|jr"|jj�d|_n|jrD|jj�d|_nt|_dS(u(Close the connection to the HTTP server.N(usockucloseuNoneu_HTTPConnection__responseu_CS_IDLEu_HTTPConnection__state(uself((u2/usr/local/python-3.2/lib/python3.2/http/client.pyuclose�s	
	
cCs�|jd
kr1|jr%|j�q1t��n|jdkrVtdt|��nd}t|d�r*|jdkr�td�nd}y
|j
}Wntk
r�Yn2Xd|kr�d}|jdkr�td�q�nxG|j
|�}|s�Pn|r|jd�}n|jj|�q�ny|jj|�Wn^tk
r�t|tj�r�x7|D]}|jj|�qgWntd	t|���YnXd
S(
u�Send `data' to the server.
        ``data`` can be a string object, a bytes object, an array object, a
        file-like object that supports a .read() method, or an iterable object.
        iusend:i ureadusendIng a read()ableubuencoding file using iso-8859-1u
iso-8859-1u9data should be a bytes-like object or an iterable, got %rNFT(usockuNoneu	auto_openuconnectuNotConnectedu
debugleveluprinturepruhasattruFalseumodeuAttributeErroruTrueureaduencodeusendallu	TypeErroru
isinstanceucollectionsuIterableutype(uselfudatau	blocksizeuencodeumodeu	datablockud((u2/usr/local/python-3.2/lib/python3.2/http/client.pyusend�sD	





cCs|jj|�dS(uuAdd a line of output to the current request buffer.

        Assumes that the line does *not* end with \r\n.
        N(u_bufferuappend(uselfus((u2/usr/local/python-3.2/lib/python3.2/http/client.pyu_output&scCs�|jjd�dj|j�}|jdd�=t|t�rT||7}d}n|j|�|dk	r}|j|�ndS(u�Send the currently buffered request and clear the buffer.

        Appends an extra \r\n to the buffer.
        A message_body may be specified, to be appended to the request.
        ss
N(ss(u_bufferuextendujoinu
isinstanceubytesuNoneusend(uselfumessage_bodyumsg((u2/usr/local/python-3.2/lib/python3.2/http/client.pyu_send_output-s
	
c
Cs|jr$|jj�r$d|_n|jtkr?t|_nt|j��||_|sfd}nd|||jf}|j	|j
d��|jdkr|s�d}|jd�r�t
|�\}}}}}n|r*y|j
d�}Wn!tk
r|j
d�}YnX|jd|�q�y|jj
d�}	Wn$tk
rf|jj
d�}	YnX|jjd	�d
kr�d|	d}	n|j|jkr�|jd|	�q�|	jd�}	|jdd
|	|jf�n|s|jdd�qndS(u`Send a request to the server.

        `method' specifies an HTTP request method, e.g. 'GET'.
        `url' specifies the object being requested, e.g. '/index.html'.
        `skip_host' if True does not add automatically a 'Host:' header
        `skip_accept_encoding' if True does not add automatically an
           'Accept-Encoding:' header
        u/u%s %s %suasciiiuuhttpuidnauHostu:is[s]u%s:%suAccept-EncodinguidentityN(u_HTTPConnection__responseuiscloseduNoneu_HTTPConnection__stateu_CS_IDLEu_CS_REQ_STARTEDuCannotSendRequestu_methodu
_http_vsn_stru_outputuencodeu	_http_vsnu
startswithuurlsplituUnicodeEncodeErroru	putheaderuhostufinduportudefault_portudecode(
uselfumethoduurlu	skip_hostuskip_accept_encodingurequestunetlocunilu
netloc_encuhost_enc((u2/usr/local/python-3.2/lib/python3.2/http/client.pyu
putrequestBsD		

 
cGs�|jtkrt��nt|d�r<|jd�}nt|�}xjt|�D]\\}}t|d�r�|jd�||<qUt|t�rUt	|�jd�||<qUqUWdj
|�}|d|}|j|�dS(ukSend a request header line to the server.

        For example: h.putheader('Accept', 'text/html')
        uencodeuasciiulatin1s
	s: N(u_HTTPConnection__stateu_CS_REQ_STARTEDuCannotSendHeaderuhasattruencodeulistu	enumerateu
isinstanceuintustrujoinu_output(uselfuheaderuvaluesuiu	one_valueuvalue((u2/usr/local/python-3.2/lib/python3.2/http/client.pyu	putheader�s cCs5|jtkrt|_n	t��|j|�dS(u�Indicate that the last header line has been sent to the server.

        This method sends the request to the server.  The optional message_body
        argument can be used to pass a message body associated with the
        request.  The message body will be sent in the same packet as the
        message headers if it is a string, otherwise it is sent as a separate
        packet.
        N(u_HTTPConnection__stateu_CS_REQ_STARTEDu_CS_REQ_SENTuCannotSendHeaderu_send_output(uselfumessage_body((u2/usr/local/python-3.2/lib/python3.2/http/client.pyu
endheaders�s		cCs|j||||�dS(u&Send a complete request to the server.N(u
_send_request(uselfumethoduurlubodyuheaders((u2/usr/local/python-3.2/lib/python3.2/http/client.pyurequest�scCs�d}ytt|��}Wn~tk
r�}z^y"ttj|j��j�}Wn4tt	fk
r�|j
dkr�td�nYnXWYdd}~XnX|dk	r�|jd|�ndS(Niu
Cannot stat!!uContent-Length(
uNoneustrulenu	TypeErroruosufstatufilenoust_sizeuAttributeErroruOSErroru
debugleveluprintu	putheader(uselfubodyuthelenute((u2/usr/local/python-3.2/lib/python3.2/http/client.pyu_set_content_length�s"%c	Cs�tjd�|D��}i}d|kr8d|d<nd|krQd|d<n|j|||�|dk	r�d|kr�|j|�nx*|j�D]\}}|j||�q�Wt|t�r�|j	d�}n|j
|�dS(	NcSsg|]}|j��qS((ulower(u.0uk((u2/usr/local/python-3.2/lib/python3.2/http/client.pyu
<listcomp>�s	uhostiu	skip_hostuaccept-encodinguskip_accept_encodingucontent-lengthu
iso-8859-1(udictufromkeysu
putrequestuNoneu_set_content_lengthuitemsu	putheaderu
isinstanceustruencodeu
endheaders(	uselfumethoduurlubodyuheadersuheader_namesuskipsuhdruvalue((u2/usr/local/python-3.2/lib/python3.2/http/client.pyu
_send_request�s

cCs�|jr$|jj�r$d|_n|jtks<|jrNt|j��n|jdkr�|j|j|jd|j	�}n|j|jd|j	�}|j
�|jtks�t
�t|_|jr�|j�n	||_|S(u/Get the response from the server.

        If the HTTPConnection is in the correct state, returns an
        instance of HTTPResponse or of whatever object is returned by
        class the response_class variable.

        If a request has not been sent or if a previous response has
        not be handled, ResponseNotReady is raised.  If the HTTP
        response indicates that the connection should be closed, then
        it will be closed before the response is returned.  When the
        connection is closed, the underlying socket is closed.
        iumethodN(u_HTTPConnection__responseuiscloseduNoneu_HTTPConnection__stateu_CS_REQ_SENTuResponseNotReadyu
debugleveluresponse_classusocku_methodubeginu
will_closeu_UNKNOWNuAssertionErroru_CS_IDLEuclose(uselfuresponse((u2/usr/local/python-3.2/lib/python3.2/http/client.pyugetresponses
		
	N(u__name__u
__module__u	_http_vsnu
_http_vsn_struHTTPResponseuresponse_classu	HTTP_PORTudefault_portu	auto_openu
debugleveluNoneu_strict_sentinelusocketu_GLOBAL_DEFAULT_TIMEOUTu__init__u
set_tunnelu
_set_hostportuset_debuglevelu_tunneluconnectucloseusendu_outputu_send_outputu
putrequestu	putheaderu
endheadersurequestu_set_content_lengthu
_send_requestugetresponse(u
__locals__((u2/usr/local/python-3.2/lib/python3.2/http/client.pyuHTTPConnection�s0

					
	0	t			csS|EeZdZeZdddddddeejd�fd�Z	d�Z
�S(u(This class allows communication via SSL.ucontextucheck_hostnamecs�tt|�j|||||�||_||_|dkrgtjtj�}|j	tj
O_	n|jtjk}
|	dkr�|
}	n|	r�|
r�t
d��n|s�|r�|j||�n||_|	|_dS(NuMcheck_hostname needs a SSL context with either CERT_OPTIONAL or CERT_REQUIRED(usuperuHTTPSConnectionu__init__ukey_fileu	cert_fileuNoneusslu
SSLContextuPROTOCOL_SSLv23uoptionsuOP_NO_SSLv2uverify_modeu	CERT_NONEu
ValueErroruload_cert_chainu_contextu_check_hostname(uselfuhostuportukey_fileu	cert_fileustrictutimeoutusource_addressucontextucheck_hostnameuwill_verify(u	__class__(u2/usr/local/python-3.2/lib/python3.2/http/client.pyu__init__Fs 			
	cCs�tj|j|jf|j|j�}|jrF||_|j�nt	j
rX|jnd}|jj
|d|�|_y,|jr�t	j|jj�|j�nWn5tk
r�|jjtj�|jj��YnXdS(u(Connect to a host on a given (SSL) port.userver_hostnameN(usocketucreate_connectionuhostuportutimeoutusource_addressu_tunnel_hostusocku_tunnelussluHAS_SNIuNoneu_contextuwrap_socketu_check_hostnameumatch_hostnameugetpeercertu	Exceptionushutdownu	SHUT_RDWRuclose(uselfusockuserver_hostname((u2/usr/local/python-3.2/lib/python3.2/http/client.pyuconnect\s		
	#

N(u__name__u
__module__u__doc__u
HTTPS_PORTudefault_portuNoneu_strict_sentinelusocketu_GLOBAL_DEFAULT_TIMEOUTu__init__uconnect(u
__locals__((u	__class__u2/usr/local/python-3.2/lib/python3.2/http/client.pyuHTTPSConnection?s

-uHTTPSConnectioncBs|EeZdS(N(u__name__u
__module__(u
__locals__((u2/usr/local/python-3.2/lib/python3.2/http/client.pyu
HTTPExceptionss
cBs|EeZdS(N(u__name__u
__module__(u
__locals__((u2/usr/local/python-3.2/lib/python3.2/http/client.pyuNotConnectedxs
cBs|EeZdS(N(u__name__u
__module__(u
__locals__((u2/usr/local/python-3.2/lib/python3.2/http/client.pyu
InvalidURL{s
cBs|EeZd�ZdS(cCs|f|_||_dS(N(uargsuversion(uselfuversion((u2/usr/local/python-3.2/lib/python3.2/http/client.pyu__init__sN(u__name__u
__module__u__init__(u
__locals__((u2/usr/local/python-3.2/lib/python3.2/http/client.pyuUnknownProtocol~s
cBs|EeZdS(N(u__name__u
__module__(u
__locals__((u2/usr/local/python-3.2/lib/python3.2/http/client.pyuUnknownTransferEncoding�s
cBs|EeZdS(N(u__name__u
__module__(u
__locals__((u2/usr/local/python-3.2/lib/python3.2/http/client.pyuUnimplementedFileMode�s
cBs,|EeZdd�Zd�Zd�ZdS(cCs"|f|_||_||_dS(N(uargsupartialuexpected(uselfupartialuexpected((u2/usr/local/python-3.2/lib/python3.2/http/client.pyu__init__�s	cCs<|jdk	rd|j}nd}dt|j�|fS(Nu, %i more expecteduuIncompleteRead(%i bytes read%s)(uexpecteduNoneulenupartial(uselfue((u2/usr/local/python-3.2/lib/python3.2/http/client.pyu__repr__�scCs
t|�S(N(urepr(uself((u2/usr/local/python-3.2/lib/python3.2/http/client.pyu__str__�sN(u__name__u
__module__uNoneu__init__u__repr__u__str__(u
__locals__((u2/usr/local/python-3.2/lib/python3.2/http/client.pyuIncompleteRead�s
	cBs|EeZdS(N(u__name__u
__module__(u
__locals__((u2/usr/local/python-3.2/lib/python3.2/http/client.pyuImproperConnectionState�s
cBs|EeZdS(N(u__name__u
__module__(u
__locals__((u2/usr/local/python-3.2/lib/python3.2/http/client.pyuCannotSendRequest�s
cBs|EeZdS(N(u__name__u
__module__(u
__locals__((u2/usr/local/python-3.2/lib/python3.2/http/client.pyuCannotSendHeader�s
cBs|EeZdS(N(u__name__u
__module__(u
__locals__((u2/usr/local/python-3.2/lib/python3.2/http/client.pyuResponseNotReady�s
cBs|EeZd�ZdS(cCs.|st|�}n|f|_||_dS(N(urepruargsuline(uselfuline((u2/usr/local/python-3.2/lib/python3.2/http/client.pyu__init__�sN(u__name__u
__module__u__init__(u
__locals__((u2/usr/local/python-3.2/lib/python3.2/http/client.pyu
BadStatusLine�s
cBs|EeZd�ZdS(cCstj|dt|f�dS(Nu&got more than %d bytes when reading %s(u
HTTPExceptionu__init__u_MAXLINE(uselfu	line_type((u2/usr/local/python-3.2/lib/python3.2/http/client.pyu__init__�sN(u__name__u
__module__u__init__(u
__locals__((u2/usr/local/python-3.2/lib/python3.2/http/client.pyuLineTooLong�s
uLineTooLong(cu__doc__uemail.parseruemailu
email.messageuiouosusocketucollectionsuurllib.parseuurlsplituwarningsu__all__u	HTTP_PORTu
HTTPS_PORTu_UNKNOWNu_CS_IDLEu_CS_REQ_STARTEDu_CS_REQ_SENTuCONTINUEuSWITCHING_PROTOCOLSu
PROCESSINGuOKuCREATEDuACCEPTEDuNON_AUTHORITATIVE_INFORMATIONu
NO_CONTENTu
RESET_CONTENTuPARTIAL_CONTENTuMULTI_STATUSuIM_USEDuMULTIPLE_CHOICESuMOVED_PERMANENTLYuFOUNDu	SEE_OTHERuNOT_MODIFIEDu	USE_PROXYuTEMPORARY_REDIRECTuBAD_REQUESTuUNAUTHORIZEDuPAYMENT_REQUIREDu	FORBIDDENu	NOT_FOUNDuMETHOD_NOT_ALLOWEDuNOT_ACCEPTABLEuPROXY_AUTHENTICATION_REQUIREDuREQUEST_TIMEOUTuCONFLICTuGONEuLENGTH_REQUIREDuPRECONDITION_FAILEDuREQUEST_ENTITY_TOO_LARGEuREQUEST_URI_TOO_LONGuUNSUPPORTED_MEDIA_TYPEuREQUESTED_RANGE_NOT_SATISFIABLEuEXPECTATION_FAILEDuUNPROCESSABLE_ENTITYuLOCKEDuFAILED_DEPENDENCYuUPGRADE_REQUIREDuINTERNAL_SERVER_ERRORuNOT_IMPLEMENTEDuBAD_GATEWAYuSERVICE_UNAVAILABLEuGATEWAY_TIMEOUTuHTTP_VERSION_NOT_SUPPORTEDuINSUFFICIENT_STORAGEuNOT_EXTENDEDu	responsesu	MAXAMOUNTu_MAXLINEu_MAXHEADERSumessageuMessageuHTTPMessageu
parse_headersuobjectu_strict_sentinelu	RawIOBaseuHTTPResponseuHTTPConnectionussluImportErroruHTTPSConnectionuappendu	Exceptionu
HTTPExceptionuNotConnectedu
InvalidURLuUnknownProtocoluUnknownTransferEncodinguUnimplementedFileModeuIncompleteReaduImproperConnectionStateuCannotSendRequestuCannotSendHeaderuResponseNotReadyu
BadStatusLineuLineTooLonguerror(((u2/usr/local/python-3.2/lib/python3.2/http/client.pyu<module>Cs			
	�}��
2

© 2025 GrazzMean