? GR0V Shell

GR0V shell

Linux in-mum-web921.main-hosting.eu 4.18.0-553.34.1.lve.el8.x86_64 #1 SMP Thu Jan 9 16:30:32 UTC 2025 x86_64

Path : /lib64/python2.7/
File Upload :
Current File : //lib64/python2.7/httplib.pyo


zfc@sdZddlmZddlZddlZddlZddlmZddlmZddl	Z	e	j
-ere	jddenddl
Z
WdQXyddlmZWn!ek
rddlmZnXd	d
ddd
ddddddddddddgZdZdZdZdZdZdZd 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@dIZAdJZBdKZCdLZDdMZEdNZFdOZGdPZHi)dQd 6dRd!6dSd#6dTd$6dUd%6dVd&6dWd'6dXd(6dYd)6dZd,6d[d-6d\d.6d]d/6d^d06d_d16d`da6dbd26dcd36ddd46ded56dfd66dgd76dhd86did96djd:6dkd;6dld<6dmd=6dnd>6dod?6dpd@6dqdA6drdB6dsdC6dtdD6dudI6dvdJ6dwdK6dxdL6dydM6dzdN6ZId{ZJd|ZKd ZLejMd}jNZOejMd~jPZQejMdZRejMdZSdddhZTde
jUfdYZVdZWd
fdYZXdfdYZYd	fdYZZyddl[Z[Wnek
rbnCXdeYfdYZ\ej]ddeZfdYZ^dZ_de`fdYZad
eafdYZbdeafdYZcdeafdYZddeafdYZedeafdYZfdeafdYZgdeafdYZhdehfdYZidehfdYZjdehfdYZkdeafdYZldeafdYZmeaZndfdYZodS(s	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>
i(tarrayN(tpy3kwarning(turlsplittignores.*mimetools has been removed(tStringIOtHTTPtHTTPResponsetHTTPConnectiont
HTTPExceptiontNotConnectedtUnknownProtocoltUnknownTransferEncodingtUnimplementedFileModetIncompleteReadt
InvalidURLtImproperConnectionStatetCannotSendRequesttCannotSendHeadertResponseNotReadyt
BadStatusLineterrort	responsesiPitUNKNOWNtIdlesRequest-startedsRequest-sentidieifiiiiiiiiii,i-i.i/i0i1i3iiiiiiiiiiiiiiiiiiiiiiiiiiiiiitContinuesSwitching ProtocolstOKtCreatedtAcceptedsNon-Authoritative Informations
No Contents
Reset ContentsPartial ContentsMultiple ChoicessMoved PermanentlytFounds	See OthersNot Modifieds	Use Proxys(Unused)i2sTemporary RedirectsBad RequesttUnauthorizedsPayment Requiredt	Forbiddens	Not FoundsMethod Not AllowedsNot AcceptablesProxy Authentication RequiredsRequest TimeouttConflicttGonesLength RequiredsPrecondition FailedsRequest Entity Too LargesRequest-URI Too LongsUnsupported Media TypesRequested Range Not SatisfiablesExpectation FailedsInternal Server ErrorsNot ImplementedsBad GatewaysService UnavailablesGateway TimeoutsHTTP Version Not Supportediis\A[^:\s][^:\r\n]*\Zs\n(?![ \t])|\r(?![ \t\n])s[- -]s[-]tPATCHtPOSTtPUTtHTTPMessagecBs#eZdZdZdZRS(cCsT|jj|}|dkr.||j|<n"dj||f}||j|<dS(s*Add header for field key handling repeats.s, N(tdicttgettNonetjoin(tselftkeytvaluetprevtcombined((s/usr/lib64/python2.7/httplib.pyt	addheaders
cCs&|j|}|d||j|<dS(s-Add more field data from a continuation line.s
 N(R%(R)R*tmoreR,((s/usr/lib64/python2.7/httplib.pytaddcontinues
cCsi|_d|_g|_}d|_d}d}d}t|jdre|jre|jj}nxt	rt
|tkrtdtn|ry|Wqt
k
rd}d|_qXn|jjtd}t
|tkrtdn|sd|_Pn|r?|jdr?|j||_qhnd}|r|dd	kr|j||j||jqhn(|j|rqhn|j|rPn|j|}|r|j||j||t
|djqh|dk	rqhd
|_qhWdS(sRead header lines.

        Read header lines up to the entirely blank line that terminates them.
        The (normally blank) line that ends the headers is skipped, but not
        included in the returned list.  If an invalid line is found in the
        header section, it is skipped, and further lines are processed.

        The variable self.status is set to the empty string if all went well,
        otherwise it is an error message.  The variable self.headers is a
        completely uninterpreted list of lines contained in the header (so
        printing them will reproduce the header exactly as it appears in the
        file).

        If multiple header fields with the same name occur, they are combined
        according to the rules in RFC 2616 sec 4.2:

        Appending each subsequent field-value to the first, each separated
        by a comma. The order in which header fields with the same field-name
        are received is significant to the interpretation of the combined
        field value.
        titunreadsgot more than %d headersisheader linesEOF in headerssFrom s 	s%Non-header line where header expectedN(R%tunixfromtheaderststatusR'thasattrtfptseekablettelltTruetlent_MAXHEADERSRtIOErrortreadlinet_MAXLINEtLineTooLongt
startswithtappendR0tstript	iscommenttislasttisheaderR.(R)thlistt
headerseent	firstlineR9tline((s/usr/lib64/python2.7/httplib.pytreadheaderssV		
		
	

'(t__name__t
__module__R.R0RK(((s/usr/lib64/python2.7/httplib.pyR$
s			cCsg}xtr|jtd}t|tkrCtdn|j|t|tkrutdtn|dkr	Pq	q	W|S(sReads potential header lines into a list from a file pointer.
    Length of line is limited by _MAXLINE, and number of
    headers is limited by _MAXHEADERS.
    isheader linesgot more than %d headerss
s
R1(s
s
R1(R:R>R?R;R@RBR<R(R7R4RJ((s/usr/lib64/python2.7/httplib.pyt
_read_headersqs	
cBseZddd
edZdZdZdZdZdZ	d
dZ
dZd	Zd
Z
d
dZdZRS(icCs|r|jd|_n|jdd|_||_||_||_d|_t|_t|_	t|_
t|_t|_t|_
t|_dS(Ntrbi(tmakefileR7t
debugleveltstrictt_methodR'tmsgt_UNKNOWNtversionR5treasontchunkedt
chunk_lefttlengtht
will_close(R)tsockRQRRtmethodt	buffering((s/usr/lib64/python2.7/httplib.pyt__init__s										cCs|jjtd}t|tkr7tdn|jdkrXdGt|GHn|smtdny|jdd\}}}WnMt
k
ry"|jdd\}}d}Wqt
k
rd}qXnX|jds)|jr
|j
t|q)t||j|_d
Sny7t|}|dksP|dkr_t|nWnt
k
rt|nX|||fS(Nisheader lineisreply:s>No status line received - the server has closed the connectioniR1sHTTP/sHTTP/0.9iidi(sHTTP/0.9iR1(R7R>R?R;R@RQtreprRtsplitR't
ValueErrorRARRtclosetLineAndFileWrappertint(R)RJRVR5RW((s/usr/lib64/python2.7/httplib.pyt_read_statuss8


	

cCs|jdk	rdSx^trs|j\}}}|tkrAPnt|j}|jdkrmd|fGHn~qW||_|j	|_
|dkrd|_n?|jdrd|_n$|dkrd|_nt
||jdkr#d|_d|_d	|_tt|_dSt|jd|_|jdkrix|jjD]}d
G|GqTWnd|j_|jjd}|r|jdkrd	|_d|_n	d|_|j|_|jjd
}|r<|jr<yt||_Wntk
rd|_qEX|jdkrEd|_qEn	d|_|tks|tksd|kotdkns|jdkrd|_n|jr|jr|jdkrd	|_ndS(Nisheaders:sHTTP/1.0i
sHTTP/1.isHTTP/0.9i	isheader:stransfer-encodingRXscontent-lengthiditHEAD(RTR'R:RftCONTINUERNR7RQR5RCRWRVRAR
RZRXR[R$RR4t	getheadertlowerRYt_check_closeReRbt
NO_CONTENTtNOT_MODIFIEDRS(R)RVR5RWtskipped_headersthdrttr_encRZ((s/usr/lib64/python2.7/httplib.pytbeginsj							

	

cCs|jjd}|jdkrS|jjd}|rOd|jkrOtStS|jjdritS|rd|jkrtS|jjd}|rd|jkrtStS(Nt
connectioniRcs
keep-alivesproxy-connection(RTRiRVRjR:tFalse(R)tconntpconn((s/usr/lib64/python2.7/httplib.pyRk!scCs)|j}|r%d|_|jndS(N(R7R'Rc(R)R7((s/usr/lib64/python2.7/httplib.pyRc?s		cCs
|jdkS(N(R7R'(R)((s/usr/lib64/python2.7/httplib.pytisclosedEscCs[|jdkrdS|jdkr0|jdS|jrF|j|S|dkr|jdkrs|jj}n@y|j|j}Wnt	k
r|jnXd|_|j|S|jdk	r||jkr|j}qn|jj|}|r|r|jn|jdk	rW|jt
|8_|jsW|jqWn|S(NR1Rgi(R7R'RSRcRXt
_read_chunkedRZtreadt
_safe_readR
R;(R)tamtts((s/usr/lib64/python2.7/httplib.pyRxPs:
	


	


	cCs.|j}g}xtr|dkr|jjtd}t|tkr[tdn|jd}|dkr|| }nyt	|d}Wn0t
k
r|jtdj
|nX|dkrPqn|dkr|j|j|n||kr=|j|j||||_dj
|S||kr|j|j||jdd|_dj
|S|j|j|||8}|jdd}qWx[tr|jjtd}t|tkrtdn|sPn|d	krPqqW|jdj
|S(
Nis
chunk sizet;iiR1istrailer lines
(RYR:R'R7R>R?R;R@tfindReRbRcR
R(RBRy(R)RzRYR+RJti((s/usr/lib64/python2.7/httplib.pyRw}sT		





	



	
cCsg}xi|dkrq|jjt|t}|sQtdj||n|j||t|8}q	Wdj|S(sVRead 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.
        iR1(R7Rxtmint	MAXAMOUNTR
R(RBR;(R)RzR{tchunk((s/usr/lib64/python2.7/httplib.pyRys
cCs
|jjS(N(R7tfileno(R)((s/usr/lib64/python2.7/httplib.pyRscCs.|jdkrtn|jj||S(N(RTR'RRi(R)tnametdefault((s/usr/lib64/python2.7/httplib.pyRiscCs(|jdkrtn|jjS(s&Return list of (header, value) tuples.N(RTR'Rtitems(R)((s/usr/lib64/python2.7/httplib.pyt
getheaderssN(RLRMR'RsR_RfRqRkRcRvRxRwRyRRiR(((s/usr/lib64/python2.7/httplib.pyRs
	'	Q			-	:		cBseZdZdZeZeZdZdZ	dZ
ddej
ddZdddZdZdZdZd	Zd
ZdZdZdd
ZdddZdZdZdZdZdZddZdidZdZ dZ!e"dZ#RS(isHTTP/1.1iicCs||_||_d|_g|_d|_t|_d|_d|_	d|_
i|_|dk	rr||_n|j
||\|_|_|j|jtj|_dS(N(ttimeouttsource_addressR'R\t_buffert_HTTPConnection__responset_CS_IDLEt_HTTPConnection__stateRSt_tunnel_hostt_tunnel_portt_tunnel_headersRRt
_get_hostportthosttportt_validate_hosttsockettcreate_connectiont_create_connection(R)RRRRRR((s/usr/lib64/python2.7/httplib.pyR_s										cCsY|jrtdn|j||\|_|_|rH||_n
|jjdS(sC Set up host and port for HTTP CONNECT tunnelling.

        In a connection that uses HTTP Connect tunneling, the host passed to the
        constructor is used as proxy server that relays all communication to the
        endpoint passed to set_tunnel. This is done by sending a HTTP CONNECT
        request to the proxy server when the connection is established.

        This method must be called before the HTTP connection has been
        established.

        The headers argument should be a mapping of extra HTTP headers
        to send with the CONNECT request.
        s.Can't setup tunnel for established connection.N(R\tRuntimeErrorRRRRtclear(R)RRR4((s/usr/lib64/python2.7/httplib.pyt
set_tunnels	cCs|dkr|jd}|jd}||kryt||d}WnItk
r||ddkr~|j}qtd||dnX|| }n	|j}|r|ddkr|ddkr|dd!}qn||fS(	Nt:t]iR1snonnumeric port: '%s'it[i(R'trfindReRbtdefault_portR(R)RRR~tj((s/usr/lib64/python2.7/httplib.pyRs

	&cCs
||_dS(N(RQ(R)tlevel((s/usr/lib64/python2.7/httplib.pytset_debuglevel/scCs\|jd|j|jfx4|jjD]#\}}|jd||fq-W|jd|j|jd|jd|j}|j	\}}}|dkr|j
tjdn|dkr|j
tjd	||j
fnx[trW|jjtd
}t|tkr:tdn|sDPn|dkrPqqWdS(NsCONNECT %s:%d HTTP/1.0
s%s: %s
s
RRR]sHTTP/0.9s$Invalid response from tunnel requestisTunnel connection failed: %d %sisheader line(tsendRRRt	iteritemstresponse_classR\RRRSRfRcRRRCR:R7R>R?R;R@(R)theaderR+tresponseRVtcodetmessageRJ((s/usr/lib64/python2.7/httplib.pyt_tunnel2s.


	cCsD|j|j|jf|j|j|_|jr@|jndS(s3Connect to the host and port specified in __init__.N(RRRRRR\RR(R)((s/usr/lib64/python2.7/httplib.pytconnectPs	cCs_t|_z)|j}|r1d|_|jnWd|j}|rZd|_|jnXdS(s(Close the connection to the HTTP server.N(RRR\R'RcR(R)R\R((s/usr/lib64/python2.7/httplib.pyRcXs					cCs|jdkr1|jr%|jq1tn|jdkrRdGt|GHnd}t|drt|t	r|jdkrdGHn|j
|}x<|r|jj||j
|}qWn|jj|dS(sSend `data' to the server.issend:i RxssendIng a read()ableN(R\R't	auto_openRR	RQR`R6t
isinstanceRRxtsendall(R)tdatat	blocksizet	datablock((s/usr/lib64/python2.7/httplib.pyRfs	
	cCs|jj|dS(suAdd a line of output to the current request buffer.

        Assumes that the line does *not* end with \r\n.
        N(RRB(R)R{((s/usr/lib64/python2.7/httplib.pyt_outputzscCsx|jjddj|j}|j2t|trK||7}d}n|j||dk	rt|j|ndS(sSend 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.
        R1s
N(R1R1(RtextendR(RtstrR'R(R)tmessage_bodyRT((s/usr/lib64/python2.7/httplib.pyt_send_outputs
	
cCs%|jr$|jjr$d|_n|jtkr?t|_n	t|j|||_|pgd}|j	|d|||j
f}|j|j||j
dkr!|sd}|jdrt|\}}}}}n|r:y|jd}Wn tk
r&|jd}nX|jd|q|jrX|j}	|j}
n|j}	|j}
y|	jd}Wn tk
r|	jd}nX|jd	d
krd|d}n|
|jkr|jd|q|jdd
||
fn|s!|jddq!ndS(s`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
        t/s%s %s %siR1thttptasciitidnatHostRiRRs%s:%ssAccept-EncodingtidentityN(RRvR'RRt_CS_REQ_STARTEDRt_validate_methodRSt_validate_patht
_http_vsn_strRt_encode_requestt	_http_vsnRARtencodetUnicodeEncodeErrort	putheaderRRRRR}R(R)R]turlt	skip_hosttskip_accept_encodingtrequesttnetloctnilt
netloc_encRRthost_enc((s/usr/lib64/python2.7/httplib.pyt
putrequestsN	
	

				

cCs|S(N((R)R((s/usr/lib64/python2.7/httplib.pyRscCs8tj|}|r4td||jfndS(s&Validate a method name for putrequest.s?method can't contain control characters. %r (found at least %r)N(t$_contains_disallowed_method_pchar_retsearchRbtgroup(R)R]tmatch((s/usr/lib64/python2.7/httplib.pyRs
cCsFtj|}|rBdjd|jd|}t|ndS(sValidate a url for putrequest.sJURL can't contain control characters. {url!r} (found at least {matched!r})tmatchedRN(t!_contains_disallowed_url_pchar_reRtformatRR(R)RRRT((s/usr/lib64/python2.7/httplib.pyRs
	cCsFtj|}|rBdjd|jd|}t|ndS(s9Validate a host so it doesn't contain control characters.sKURL can't contain control characters. {host!r} (found at least {matched!r})RRN(RRRRR(R)RRRT((s/usr/lib64/python2.7/httplib.pyR(s
	cGs|jtkrtnd|}t|sGtd|fng|D]}t|^qN}x0|D](}t|rmtd|fqmqmWd|dj|f}|j|dS(skSend a request header line to the server.

        For example: h.putheader('Accept', 'text/html')
        s%ssInvalid header name %rsInvalid header value %rs%s: %ss
	N(	RRRt_is_legal_header_nameRbRt_is_illegal_header_valueR(R(R)Rtvaluestvt	one_valueRo((s/usr/lib64/python2.7/httplib.pyR3s

cCs5|jtkrt|_n	t|j|dS(sIndicate 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 string, otherwise it is
        sent as a separate packet.
        N(RRt_CS_REQ_SENTRR(R)R((s/usr/lib64/python2.7/httplib.pyt
endheadersGs		cCs|j||||dS(s&Send a complete request to the server.N(t
_send_request(R)R]RtbodyR4((s/usr/lib64/python2.7/httplib.pyRVscCsd}|dkr-|jtkr-d}n|dk	rytt|}Wqttfk
ry"ttj|j	j
}Wqttfk
r|jdkrdGHqqXqXn|dk	r|j
d|ndS(Nt0is
Cannot stat!!sContent-Length(R'tuppert_METHODS_EXPECTING_BODYRR;t	TypeErrortAttributeErrortostfstatRtst_sizetOSErrorRQR(R)RR]tthelen((s/usr/lib64/python2.7/httplib.pyt_set_content_lengthZs	"c
Cstjg|D]}|j^q
}i}d|krGd|d<nd|kr`d|d<n|j|||d|kr|j||nx*|jD]\}}	|j||	qW|j|dS(NRiRsaccept-encodingRscontent-length(R%tfromkeysRjRRRRR(
R)R]RRR4tktheader_namestskipsRoR+((s/usr/lib64/python2.7/httplib.pyRqs(

cCs
|jr$|jjr$d|_n|jtks<|jrHtn|jf}i|jd6|jd6}|j	dkr||j	f7}n|rt
|d<n|j||}y:|jt
|_|jr|jn	||_|SWn|jnXdS(s!Get the response from the server.RRR]iR^N(RRvR'RRRR\RRRSRQR:RRqRR[Rc(R)R^targstkwdsR((s/usr/lib64/python2.7/httplib.pytgetresponses*

		
	
N($RLRMRRRRt	HTTP_PORTRRRQRRR'Rt_GLOBAL_DEFAULT_TIMEOUTR_RRRRRRcRRRRRRRRRRRRRRsR(((s/usr/lib64/python2.7/httplib.pyRs:							y		
					cBsneZdZdZdZdZeZddddZ	dZ
dddZdZe
d	Zd
ZRS(s-Compatibility class with httplib.py from 1.5.i
sHTTP/1.0iR1cCs5|dkrd}n|j|j|||dS(s:Provide a default host, since the superclass requires one.iN(R't_setupt_connection_class(R)RRRR((s/usr/lib64/python2.7/httplib.pyR_s	cCsj||_|j|_|j|_|j|_|j|_|j|_|j|_|j|_d|_	dS(N(
t_connRRRRRRRR'tfile(R)Rt((s/usr/lib64/python2.7/httplib.pyRs	cCsG|dk	r6|jj||\|j_|j_n|jjdS(sDAccept arguments to set the host/port, since the superclass doesn't.N(R'RRRRR(R)RR((s/usr/lib64/python2.7/httplib.pyRs*cCs|jS(sCProvide a getfile, since the superclass' does not use this concept.(R(R)((s/usr/lib64/python2.7/httplib.pytgetfilescCsy.|s|jj}n|jj|}WnNtk
r~}|jjjdd|_|jd|_d|j	dfSX|j
|_|j|_|j|j
|j
fS(sCompat definition since superclass does not define it.

        Returns a tuple consisting of:
        - server status code (e.g. '200' if all goes well)
        - server "reason" corresponding to status code
        - any RFC822 headers in the response from the server
        ROiiN(RRRR\RPRRcR'R4RJRTR7R5RW(R)R^Rte((s/usr/lib64/python2.7/httplib.pytgetreplys
	cCs|jjd|_dS(N(RRcR'R(R)((s/usr/lib64/python2.7/httplib.pyRc	s
N(RLRMt__doc__RRRQRRR'R_RRRRsRRc(((s/usr/lib64/python2.7/httplib.pyRs		!tHTTPSConnectioncBs>eZdZeZddddejdddZdZ	RS(s(This class allows communication via SSL.c		Csutj||||||||_||_|dkrItj}n|sU|rh|j||n||_dS(N(	RR_tkey_filet	cert_fileR'tsslt_create_default_https_contexttload_cert_chaint_context(	R)RRRRRRRRtcontext((s/usr/lib64/python2.7/httplib.pyR_s		cCsMtj||jr"|j}n	|j}|jj|jd||_dS(s(Connect to a host on a given (SSL) port.tserver_hostnameN(RRRRRtwrap_socketR\(R)R((s/usr/lib64/python2.7/httplib.pyR*s
		N(
RLRMRt
HTTPS_PORTRR'RRR_R(((s/usr/lib64/python2.7/httplib.pyRs		tHTTPScBs/eZdZeZdddddddZRS(sCompatibility with 1.5 httplib interface

        Python 1.5.2 did not have an HTTPS class, but it defined an
        interface for sending http requests that is also useful for
        https.
        R1c	CsS|dkrd}n|j|j|||||d|||_||_dS(NiR(R'RRRR(R)RRRRRRR((s/usr/lib64/python2.7/httplib.pyR_Cs		
	N(RLRMRRRR'R_(((s/usr/lib64/python2.7/httplib.pyR9scCstjddtdd|S(Ns0FakeSocket is deprecated, and won't be in 3.x.  s5Use the result of ssl.wrap_socket() directly instead.t
stackleveli(twarningstwarntDeprecationWarning(R\tsslobj((s/usr/lib64/python2.7/httplib.pyt
FakeSocketTs	
cBseZRS((RLRM(((s/usr/lib64/python2.7/httplib.pyR[scBseZRS((RLRM(((s/usr/lib64/python2.7/httplib.pyR	`scBseZRS((RLRM(((s/usr/lib64/python2.7/httplib.pyRcscBseZdZRS(cCs|f|_||_dS(N(RRV(R)RV((s/usr/lib64/python2.7/httplib.pyR_gs(RLRMR_(((s/usr/lib64/python2.7/httplib.pyR
fscBseZRS((RLRM(((s/usr/lib64/python2.7/httplib.pyRkscBseZRS((RLRM(((s/usr/lib64/python2.7/httplib.pyRnscBs&eZddZdZdZRS(cCs"|f|_||_||_dS(N(Rtpartialtexpected(R)RR
((s/usr/lib64/python2.7/httplib.pyR_rs	cCs<|jdk	rd|j}nd}dt|j|fS(Ns, %i more expectedR1sIncompleteRead(%i bytes read%s)(R
R'R;R(R)R((s/usr/lib64/python2.7/httplib.pyt__repr__vscCs
t|S(N(R`(R)((s/usr/lib64/python2.7/httplib.pyt__str__|sN(RLRMR'R_RR(((s/usr/lib64/python2.7/httplib.pyR
qs	cBseZRS((RLRM(((s/usr/lib64/python2.7/httplib.pyRscBseZRS((RLRM(((s/usr/lib64/python2.7/httplib.pyRscBseZRS((RLRM(((s/usr/lib64/python2.7/httplib.pyRscBseZRS((RLRM(((s/usr/lib64/python2.7/httplib.pyRscBseZdZRS(cCs.|st|}n|f|_||_dS(N(R`RRJ(R)RJ((s/usr/lib64/python2.7/httplib.pyR_s(RLRMR_(((s/usr/lib64/python2.7/httplib.pyRsR@cBseZdZRS(cCstj|dt|fdS(Ns&got more than %d bytes when reading %s(RR_R?(R)t	line_type((s/usr/lib64/python2.7/httplib.pyR_s(RLRMR_(((s/usr/lib64/python2.7/httplib.pyR@sRdcBsJeZdZdZdZdZddZdZddZ	RS(s2A limited file-like object for HTTP/0.9 responses.cCs7||_||_d|_d|_t||_dS(Ni(t_linet_filet_line_consumedt_line_offsetR;t
_line_left(R)RJR((s/usr/lib64/python2.7/httplib.pyR_s
				cCst|j|S(N(tgetattrR(R)tattr((s/usr/lib64/python2.7/httplib.pyt__getattr__scCs:d|_|jj|_|jj|_|jj|_dS(Ni(RRRxR>t	readlines(R)((s/usr/lib64/python2.7/httplib.pyt_dones	cCs|jr|jj|S|dks4||jkr|j|j}|j|dkrk||jjS||jj|t|Sn[|j}||}|j||!}||_|j|8_|jdkr|jn|SdS(Ni(	RRRxR'RRRRR;(R)RzR{R~R((s/usr/lib64/python2.7/httplib.pyRxs 	
!	
	
cCs4|jr|jjS|j|j}|j|S(N(RRR>RRR(R)R{((s/usr/lib64/python2.7/httplib.pyR>s
	

cCsk|jr|jj|S|j|jg}|j|dkrS||jjS||jj|SdS(N(RRRRRRR'(R)tsizetL((s/usr/lib64/python2.7/httplib.pyRs	
N(
RLRMRR_RRR'RxR>R(((s/usr/lib64/python2.7/httplib.pyRds					(pRRRtreRtsysRturlparseRRtcatch_warningstfilterwarningsR	t	mimetoolst	cStringIORtImportErrort__all__RRRURRRRhtSWITCHING_PROTOCOLSt
PROCESSINGRtCREATEDtACCEPTEDtNON_AUTHORITATIVE_INFORMATIONRlt
RESET_CONTENTtPARTIAL_CONTENTtMULTI_STATUStIM_USEDtMULTIPLE_CHOICEStMOVED_PERMANENTLYtFOUNDt	SEE_OTHERRmt	USE_PROXYtTEMPORARY_REDIRECTtBAD_REQUESTtUNAUTHORIZEDtPAYMENT_REQUIREDt	FORBIDDENt	NOT_FOUNDtMETHOD_NOT_ALLOWEDtNOT_ACCEPTABLEtPROXY_AUTHENTICATION_REQUIREDtREQUEST_TIMEOUTtCONFLICTtGONEtLENGTH_REQUIREDtPRECONDITION_FAILEDtREQUEST_ENTITY_TOO_LARGEtREQUEST_URI_TOO_LONGtUNSUPPORTED_MEDIA_TYPEtREQUESTED_RANGE_NOT_SATISFIABLEtEXPECTATION_FAILEDtUNPROCESSABLE_ENTITYtLOCKEDtFAILED_DEPENDENCYtUPGRADE_REQUIREDtINTERNAL_SERVER_ERRORtNOT_IMPLEMENTEDtBAD_GATEWAYtSERVICE_UNAVAILABLEtGATEWAY_TIMEOUTtHTTP_VERSION_NOT_SUPPORTEDtINSUFFICIENT_STORAGEtNOT_EXTENDEDRRR?R<tcompileRRRRRRRtMessageR$RNRRRRRRBRRt	ExceptionRR	RR
RRR
RRRRRR@RRd(((s/usr/lib64/python2.7/httplib.pyt<module>Cs:


				
d	`[

	

T1KUS90T
  root-grov@89.117.188.241:~$