shell bypass 403

UnknownSec Shell

: /lib64/python2.7/ [ drwxr-xr-x ]

name : httplib.pyc
�
zfc@s�dZddlmZddlZddlZddlZddlmZddlmZddl	Z	e	j
��-er�e	jdde�nddl
Z
WdQXyddlmZWn!ek
r�ddlmZnXd	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~�jPZQejMd�ZRejMd��ZSd�d�d�hZTd�e
jUfd���YZVd��ZWd
fd���YZXdfd���YZYd	fd���YZZyddl[Z[Wnek
rbnCXd�eYfd���YZ\ej]d��d�eZfd���YZ^d��Z_de`fd���YZad
eafd���YZbdeafd���YZcdeafd���YZddeafd���YZedeafd���YZfdeafd���YZgdeafd���YZhdehfd���YZidehfd���YZjdehfd���YZkdeafd���YZld�eafd���YZmeaZnd�fd���YZodS(�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	responsesiPi�tUNKNOWNtIdlesRequest-starteds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�tContinuesSwitching 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#eZd�Zd�Zd�ZRS(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}nx�t	rt
|�tkr�tdt��n|r�y|�Wq�t
k
r�d}d|_q�Xn|jjtd�}t
|�tkrtd��n|sd|_Pn|r?|jd�r?|j||_qhnd}|r�|dd	kr�|j|�|j||j��qhn(|j|�r�qhn|j|�r�Pn|j|�}|r�|j|�|j||t
|�dj��qh|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			cCs�g}x�tr�|jtd�}t|�tkrCtd��n|j|�t|�tkrutdt��n|dkr	Pq	q	W|S(s�Reads 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	
cBs�eZddd
ed�Zd�Zd�Zd�Zd�Zd�Z	d
d�Z
d�Zd	�Zd
�Z
d
d�Zd�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|�tkr7td��n|jdkrXdGt|�GHn|smtd��ny|jdd�\}}}WnMt
k
r�y"|jdd�\}}d}Wq�t
k
r�d}q�XnX|jd�s)|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.9i�idi�(sHTTP/0.9i�R1(R7R>R?R;R@RQtreprRtsplitR't
ValueErrorRARRtclosetLineAndFileWrappertint(R)RJRVR5RW((s/usr/lib64/python2.7/httplib.pyt_read_status�s8


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

	

cCs�|jjd�}|jdkrS|jjd�}|rOd|j�krOtStS|jjd�ritS|r�d|j�kr�tS|jjd�}|r�d|j�kr�tStS(Nt
connectioniRcs
keep-alivesproxy-connection(RTRiRVRjR:tFalse(R)tconntpconn((s/usr/lib64/python2.7/httplib.pyRk!scCs)|j}|r%d|_|j�ndS(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|j�dS|jrF|j|�S|dkr�|jdkrs|jj�}n@y|j|j�}Wnt	k
r�|j��nXd|_|j�|S|jdk	r�||jkr�|j}q�n|jj|�}|r|r|j�n|jdk	rW|jt
|�8_|jsW|j�qWn|S(NR1Rgi(R7R'RSRcRXt
_read_chunkedRZtreadt
_safe_readR
R;(R)tamtts((s/usr/lib64/python2.7/httplib.pyRxPs:
	


	


	cCsC|jtkst�|j}g}x�tr�|dkr�|jjtd�}t	|�tkrpt
d��n|jd�}|dkr�|| }nyt|d�}Wn0t
k
r�|j�tdj|���nX|dkr�Pq�n|dkr|j|j|��n�||krR|j|j|��|||_dj|�S||kr�|j|j|��|jd�d|_dj|�S|j|j|��||8}|jd�d}q'Wx[tr+|jjtd�}t	|�tkrt
d��n|sPn|d	kr�Pq�q�W|j�dj|�S(
Nis
chunk sizet;iiR1istrailer lines
(RXRUtAssertionErrorRYR:R'R7R>R?R;R@tfindReRbRcR
R(RBRy(R)RzRYR+RJti((s/usr/lib64/python2.7/httplib.pyRw}sV		





	



	
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.pyRy�s
cCs
|jj�S(N(R7tfileno(R)((s/usr/lib64/python2.7/httplib.pyR��scCs.|jdkrt��n|jj||�S(N(RTR'RRi(R)tnametdefault((s/usr/lib64/python2.7/httplib.pyRi�scCs(|jdkrt��n|jj�S(s&Return list of (header, value) tuples.N(RTR'Rtitems(R)((s/usr/lib64/python2.7/httplib.pyt
getheaders�sN(RLRMR'RsR_RfRqRkRcRvRxRwRyR�RiR�(((s/usr/lib64/python2.7/httplib.pyR�s
	'	Q			-	:		cBseZdZdZeZeZdZdZ	dZ
ddej
dd�Zddd�Zd�Zd�Zd�Zd	�Zd
�Zd�Zd�Zdd
�Zddd�Zd�Zd�Zd�Zd�Zd�Zdd�Zdid�Zd�Z d�Z!e"d�Z#RS(isHTTP/1.1iicCs�||_||_d|_g|_d|_t|_d|_d|_	d|_
i|_|dk	rr||_n|j
||�\|_|_|j|j�tj|_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)R�R�RRR�R�((s/usr/lib64/python2.7/httplib.pyR_�s										cCsY|jrtd��n|j||�\|_|_|rH||_n
|jj�dS(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RuntimeErrorR�R�R�R�tclear(R)R�R�R4((s/usr/lib64/python2.7/httplib.pyt
set_tunnels	cCs�|dkr�|jd�}|jd�}||kr�yt||d�}WnItk
r�||ddkr~|j}q�td||d��nX|| }n	|j}|r�|ddkr�|ddkr�|dd!}q�n||fS(	Nt:t]iR1snonnumeric port: '%s'it[i����(R'trfindReRbtdefault_portR(R)R�R�Rtj((s/usr/lib64/python2.7/httplib.pyR�s

	&cCs
||_dS(N(RQ(R)tlevel((s/usr/lib64/python2.7/httplib.pytset_debuglevel/scCs\|jd|j|jf�x4|jj�D]#\}}|jd||f�q-W|jd�|j|jd|jd|j�}|j	�\}}}|dkr�|j
�tjd��n|dkr�|j
�tjd	||j
�f��nx[trW|jjtd
�}t|�tkr:td��n|sDPn|dkr�Pq�q�WdS(NsCONNECT %s:%d HTTP/1.0
s%s: %s
s
RRR]sHTTP/0.9s$Invalid response from tunnel requesti�sTunnel connection failed: %d %sisheader line(tsendR�R�R�t	iteritemstresponse_classR\RRRSRfRcR�RRCR:R7R>R?R;R@(R)theaderR+tresponseRVtcodetmessageRJ((s/usr/lib64/python2.7/httplib.pyt_tunnel2s.


	cCsD|j|j|jf|j|j�|_|jr@|j�ndS(s3Connect to the host and port specified in __init__.N(R�R�R�R�R�R\R�R�(R)((s/usr/lib64/python2.7/httplib.pytconnectPs	cCs_t|_z)|j}|r1d|_|j�nWd|j}|rZd|_|j�nXdS(s(Close the connection to the HTTP server.N(R�R�R\R'RcR�(R)R\R�((s/usr/lib64/python2.7/httplib.pyRcXs					cCs�|jdkr1|jr%|j�q1t��n|jdkrRdGt|�GHnd}t|d�r�t|t	�r�|jdkr�dGHn|j
|�}x<|r�|jj|�|j
|�}q�Wn|jj|�dS(sSend `data' to the server.issend:i RxssendIng a read()ableN(R\R't	auto_openR�R	RQR`R6t
isinstanceRRxtsendall(R)tdatat	blocksizet	datablock((s/usr/lib64/python2.7/httplib.pyR�fs	
	cCs|jj|�dS(suAdd a line of output to the current request buffer.

        Assumes that the line does *not* end with \r\n.
        N(R�RB(R)R{((s/usr/lib64/python2.7/httplib.pyt_outputzscCsx|jjd�dj|j�}|j2t|t�rK||7}d}n|j|�|dk	rt|j|�ndS(s�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.
        R1s
N(R1R1(R�textendR(R�tstrR'R�(R)tmessage_bodyRT((s/usr/lib64/python2.7/httplib.pyt_send_output�s
	
cCs%|jr$|jj�r$d|_n|jtkr?t|_n	t��|j|�||_|pgd}|j	|�d|||j
f}|j|j|��|j
dkr!|sd}|jd�r�t|�\}}}}}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
kr�d|d}n|
|jkr�|jd|�q|jdd
||
f�n|s!|jdd�q!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 %siR1thttptasciitidnatHostR�iR�R�s%s:%ssAccept-EncodingtidentityN(R�RvR'R�R�t_CS_REQ_STARTEDRt_validate_methodRSt_validate_patht
_http_vsn_strR�t_encode_requestt	_http_vsnRARtencodetUnicodeEncodeErrort	putheaderR�R�R�R�R~R�(R)R]turlt	skip_hosttskip_accept_encodingtrequesttnetloctnilt
netloc_encR�R�thost_enc((s/usr/lib64/python2.7/httplib.pyt
putrequest�sN	
	

				

cCs|S(N((R)R�((s/usr/lib64/python2.7/httplib.pyR�scCs8tj|�}|r4td||j�f��ndS(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.pyR�s
cCsFtj|�}|rBdjd|j�d|�}t|��ndS(sValidate a url for putrequest.sJURL can't contain control characters. {url!r} (found at least {matched!r})tmatchedR�N(t!_contains_disallowed_url_pchar_reR�tformatR�R(R)R�R�RT((s/usr/lib64/python2.7/httplib.pyR�s
	cCsFtj|�}|rBdjd|j�d|�}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})R�R�N(R�R�R�R�R(R)R�R�RT((s/usr/lib64/python2.7/httplib.pyR�(s
	cGs�|jtkrt��nd|}t|�sGtd|f��ng|D]}t|�^qN}x0|D](}t|�rmtd|f��qmqmWd|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(	R�R�Rt_is_legal_header_nameRbR�t_is_illegal_header_valueR(R�(R)R�tvaluestvt	one_valueRo((s/usr/lib64/python2.7/httplib.pyR�3s

cCs5|jtkrt|_n	t��|j|�dS(s�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 string, otherwise it is
        sent as a separate packet.
        N(R�R�t_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]R�tbodyR4((s/usr/lib64/python2.7/httplib.pyR�VscCs�d}|dkr-|j�tkr-d}n�|dk	r�ytt|��}Wq�ttfk
r�y"ttj|j	��j
�}Wq�ttfk
r�|jdkr�dGHq�q�Xq�Xn|dk	r�|j
d|�ndS(Nt0is
Cannot stat!!sContent-Length(R'tuppert_METHODS_EXPECTING_BODYR�R;t	TypeErrortAttributeErrortostfstatR�tst_sizetOSErrorRQR�(R)R�R]tthelen((s/usr/lib64/python2.7/httplib.pyt_set_content_lengthZs	"c
Cs�tjg|D]}|j�^q
�}i}d|krGd|d<nd|kr`d|d<n|j|||�d|kr�|j||�nx*|j�D]\}}	|j||	�q�W|j|�dS(NR�iR�saccept-encodingR�scontent-length(R%tfromkeysRjR�R�R�R�R�(
R)R]R�R�R4tktheader_namestskipsRoR+((s/usr/lib64/python2.7/httplib.pyR�qs(

cCs|jr$|jj�r$d|_n|jtks<|jrHt��n|jf}i|jd6|jd6}|j	dkr�||j	f7}n|r�t
|d<n|j||�}yO|j�|j
tks�t�t|_|j
r�|j�n	||_|SWn|j��nXdS(s!Get the response from the server.RRR]iR^N(R�RvR'R�R�RR\RRRSRQR:R�RqR[RUR}R�Rc(R)R^targstkwdsR�((s/usr/lib64/python2.7/httplib.pytgetresponse�s,

		
	
N($RLRMR�R�RR�t	HTTP_PORTR�R�RQRRR'R�t_GLOBAL_DEFAULT_TIMEOUTR_R�R�R�R�R�RcR�R�R�R�R�R�R�R�R�R�R�R�R�RsR�(((s/usr/lib64/python2.7/httplib.pyR�s:							y		
					cBsneZdZdZdZdZeZdddd�Z	d�Z
ddd�Zd�Z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)R�R�RR((s/usr/lib64/python2.7/httplib.pyR_�s	cCsj||_|j|_|j|_|j|_|j|_|j|_|j|_|j|_d|_	dS(N(
t_connR�R�R�R�R�R�R�R'tfile(R)Rt((s/usr/lib64/python2.7/httplib.pyR��s	cCsG|dk	r6|jj||�\|j_|j_n|jj�dS(sDAccept arguments to set the host/port, since the superclass doesn't.N(R'R�R�R�R�R�(R)R�R�((s/usr/lib64/python2.7/httplib.pyR��s*cCs|jS(sCProvide a getfile, since the superclass' does not use this concept.(R�(R)((s/usr/lib64/python2.7/httplib.pytgetfile�scCs�y.|s|jj�}n|jj|�}WnNtk
r~}|jjjdd�|_|j�d|_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
        ROii����N(R�R�RR\RPR�RcR'R4RJRTR7R5RW(R)R^R�te((s/usr/lib64/python2.7/httplib.pytgetreply�s
	cCs|jj�d|_dS(N(R�RcR'R�(R)((s/usr/lib64/python2.7/httplib.pyRc	s
N(RLRMt__doc__R�R�RQRR�R'R_R�R�R�RsR�Rc(((s/usr/lib64/python2.7/httplib.pyR�s		!tHTTPSConnectioncBs>eZdZeZddddejddd�Zd�Z	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)R�R�R�R�RRR�R�tcontext((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(RR�R�R�Rtwrap_socketR\(R)R((s/usr/lib64/python2.7/httplib.pyR�*s
		N(
RLRMR�t
HTTPS_PORTR�R'R�R�R_R�(((s/usr/lib64/python2.7/httplib.pyR�s		tHTTPScBs/eZdZeZddddddd�ZRS(s�Compatibility 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'R�R�R�R�(R)R�R�R�R�RRR((s/usr/lib64/python2.7/httplib.pyR_Cs		
	N(RLRMR�R�R�R'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.pyRcscBseZd�ZRS(cCs|f|_||_dS(N(R�RV(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&eZdd�Zd�Zd�ZRS(cCs"|f|_||_||_dS(N(R�tpartialtexpected(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)(RR'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.pyR�scBseZRS((RLRM(((s/usr/lib64/python2.7/httplib.pyR�scBseZRS((RLRM(((s/usr/lib64/python2.7/httplib.pyR�scBseZd�ZRS(cCs.|st|�}n|f|_||_dS(N(R`R�RJ(R)RJ((s/usr/lib64/python2.7/httplib.pyR_�s(RLRMR_(((s/usr/lib64/python2.7/httplib.pyR�sR@cBseZd�ZRS(cCstj|dt|f�dS(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@�sRdcBsJeZdZd�Zd�Zd�Zdd�Zd�Zdd�Z	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_done�s	cCs|jr|jj|�S|js(t�|dksC||jkr�|j|j}|j�|dkrz||jj�S||jj|t	|��Snp||jks�t�|j}||}|j||!}||_|j|8_|jdkr|j�n|SdS(Ni(
RRRxRR}R'RRRR;(R)RzR{RR�((s/usr/lib64/python2.7/httplib.pyRx�s$	
!	
	
cCsC|jr|jj�S|js%t�|j|j}|j�|S(N(RRR>RR}RRR(R)R{((s/usr/lib64/python2.7/httplib.pyR>�s	

cCsz|jr|jj|�S|js(t�|j|jg}|j�|dkrb||jj�S||jj|�SdS(N(	RRRRR}RRRR'(R)tsizetL((s/usr/lib64/python2.7/httplib.pyR�s	
N(
RLRMR�R_RRR'RxR>R(((s/usr/lib64/python2.7/httplib.pyRd�s					(pR�RR�treR�tsysRturlparseRRtcatch_warningstfilterwarningsR
t	mimetoolst	cStringIORtImportErrort__all__R�RRUR�R�R�RhtSWITCHING_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_EXTENDEDRR�R?R<tcompileR�R�R�R�R�R�R�tMessageR$RNRRRR�R�RBRRt	ExceptionRR	RR
RRR
RRRRRR@RRd(((s/usr/lib64/python2.7/httplib.pyt<module>Cs:


				
d	�`��[

	

© 2025 UnknownSec
Learning made Easy | Anyleson - Learning Platform
INR (₹)
India Rupee
$
United States Dollar

Joy of learning & teaching...

Rocket LMS is a fully-featured educational platform that helps instructors to create and publish video courses, live classes, and text courses and earn money, and helps students to learn in the easiest way.

6

Skillful Instructors

Start learning from experienced instructors.

11

Happy Students

Enrolled in our courses and improved their skills.

8

Live Classes

Improve your skills using live knowledge flow.

10

Video Courses

Learn without any geographical & time limitations.

Featured Courses

#Browse featured courses and become skillful

New Learning Page

Learn step-by-step tips that help you get things done with your virtual team by increasing trust and accountability.If you manage a virtual team today, then you'll probably continue to do so for the rest of your career.

5.00
20% Offer

Excel from Beginner to Advanced

Microsoft Excel is a spreadsheet developed by Microsoft for Windows, macOS, Android and iOS. It features calculation, graphing tools, pivot tables, and a macro programming language called Visual Basic for Applications (VBA).

4.75

Newest Courses

#Recently published courses

View All
Course
Full Stack Web Development

Full Stack Web Development

in Web Development
83:20 Hours
10 Oct 2024
₹28,318.82
Course
Installment and Secure Host

Installment and Secure Host

in Business Strategy
5.00
1:30 Hours
16 Mar 2023
₹118
Not conducted
Bestseller
New In-App Live System

New In-App Live System

in Communications
5.00
2:30 Hours
1 Mar 2026
₹11.80
Featured
New Learning Page

New Learning Page

in Lifestyle
5.00
3:30 Hours
1 Mar 2022
Free
Finished
Effective Time Management

Effective Time Management

in Management
5.00
1:30 Hours
1 Aug 2023
₹35.40
20% Offer
Excel from Beginner to Advanced

Excel from Beginner to Advanced

in Management
4.75
1:40 Hours
20 Mar 2026
₹94.40 ₹118

Latest bundles

Latest bundles subtitle

View All
Bestseller
Microsoft Office Beginner to Expert Bundle

Microsoft Office Beginner to Expert Bundle

in Management
5.00
15:10 Hours
24 Jun 2022
₹59

A-Z Web Programming

in Web Development
4.75
2:20 Hours
25 Jun 2022
₹9.44

Upcoming Courses

Courses that will be published soon

View All

Best Rated Courses

#Enjoy high quality and best rated content

View All
Finished
Effective Time Management

Effective Time Management

in Management
5.00
1:30 Hours
1 Aug 2023
₹35.40
20% Offer
Health And Fitness Masterclass

Health And Fitness Masterclass

in Health & Fitness
5.00
1:00 Hours
1 Jul 2021
₹18.88 ₹23.60
Finished
Learn Linux in 5 Days

Learn Linux in 5 Days

in Web Development
4.69
7:30 Hours
10 Jul 2021
Free
Text course
Learn Python Programming

Learn Python Programming

in Web Development
4.63
0:35 Hours
29 Jun 2021
Free
Course
Become a Product Manager

Become a Product Manager

in Business Strategy
4.58
2:30 Hours
28 Jun 2021
Free
20% Offer
Learn and Understand AngularJS

Learn and Understand AngularJS

in Web Development
3.88
1:00 Hours
10 Dec 2023
₹18.88 ₹23.60

Trending Categories

#Browse trending & popular learning topics

Bestselling Courses

#Learn from bestselling courses

View All
Course
Become a Product Manager

Become a Product Manager

in Business Strategy
4.58
2:30 Hours
28 Jun 2021
Free
Finished
Learn Linux in 5 Days

Learn Linux in 5 Days

in Web Development
4.00
7:30 Hours
10 Jul 2021
Free
20% Offer
Excel from Beginner to Advanced

Excel from Beginner to Advanced

in Management
4.75
1:40 Hours
20 Mar 2026
₹94.40 ₹118
Finished
Effective Time Management

Effective Time Management

in Management
5.00
1:30 Hours
1 Aug 2023
₹35.40
40% Offer
The Future of Energy

The Future of Energy

in Science
2.50
1:10 Hours
8 Jul 2021
₹42.48 ₹70.80
Not conducted
Bestseller
New In-App Live System

New In-App Live System

in Communications
5.00
2:30 Hours
1 Mar 2026
₹11.80

Free Courses

#Never miss free learning opportunities

View All
Featured
New Learning Page

New Learning Page

in Lifestyle
5.00
3:30 Hours
1 Mar 2022
Free
Course
New Update Features

New Update Features

in Language
4.00
1:30 Hours
21 Jun 2022
Free
Text course
Learn Python Programming

Learn Python Programming

in Web Development
5.00
0:35 Hours
29 Jun 2021
Free
Finished
Learn Linux in 5 Days

Learn Linux in 5 Days

in Web Development
4.00
7:30 Hours
10 Jul 2021
Free
Course
Become a Product Manager

Become a Product Manager

in Business Strategy
4.58
2:30 Hours
28 Jun 2021
Free

Discounted Courses

#Get courses at the latest price

View All
20% Offer
Excel from Beginner to Advanced

Excel from Beginner to Advanced

in Management
4.75
1:40 Hours
20 Mar 2026
₹94.40 ₹118
20% Offer
Learn and Understand AngularJS

Learn and Understand AngularJS

in Web Development
2.75
1:00 Hours
10 Dec 2023
₹18.88 ₹23.60
20% Offer
Health And Fitness Masterclass

Health And Fitness Masterclass

in Health & Fitness
5.00
1:00 Hours
1 Jul 2021
₹18.88 ₹23.60
40% Offer
The Future of Energy

The Future of Energy

in Science
2.50
1:10 Hours
8 Jul 2021
₹42.48 ₹70.80

Store Products

Explore physical & virtual products

All Products

Subscribe Now!

#Choose a subscription plan and save money!

Become an instructor

Are you interested to be a part of our community? You can be a part of our community by signing up as an instructor or organization.

Become an instructor circle dots
user name
Become an instructor start earning right now...
Have a Question? Ask it in forum and get answer circle dots

Have a Question? Ask it in forum and get answer

Our forums helps you to create your questions on different subjects and communicate with other forum users. Our users will help you to get the best answer!

Find the best instructor

Looking for an instructor? Find the best instructors according to different parameters like gender, skill level, price, meeting type, rating, etc. Find instructors on the map.

Find the best instructor circle dots
user name
Tutor Finder Find the best instructor now...

Start learning anywhere, anytime...

Use Rocket LMS to access high-quality education materials without any limitations in the easiest way.

Win Club Points
medal
You earned 50 points! for completing the course...

Win Club Points

Use Rocket LMS and win club points according to different activities. You will be able to use your club points to get free prizes and courses. Start using the system now and collect points!

Instructors

#Learn from the experienced & skillful instructors

All Instructors

Testimonials

#What our customers say about us

Ryan Newman

Ryan Newman

Data Analyst at Microsoft

"We've used Rocket LMS for the last 2  years. Thanks for the great service."

Megan Hayward

Megan Hayward

System Administrator at Amazon

"We're loving it. Rocket LMS is both perfect    and highly adaptable."

Natasha Hope

Natasha Hope

IT Technician at IBM

"I am really satisfied with my Rocket LMS. It's the perfect solution for our business."

Charles Dale

Charles Dale

Computer Engineer at Oracle

"I am so pleased with this product. I couldn't have asked for more than this."

David Patterson

David Patterson

Network Technician at Cisco

"Rocket LMS impressed me on multiple           levels."

Organizations

#Greatest education organizations are here to help you

All Organizations

Blog

#Explore latest news and articles

Blog Posts
Become a Straight-A Student 1 Jul 2021

Become a Straight-A Student

In this article, I’ll explain the two rules I followed to become a straight-A student. If you take my advice, you’ll get better grades and lead a more ...
How To Teach Your Kid Easily 1 Jul 2021

How To Teach Your Kid Easily

The primary reason kids struggle with school is fear. And in most cases, it’s their parent's fault. I started tutoring math out of financial desperation. ...
Better Relationship Between Friends 1 Jul 2021

Better Relationship Between Friends

The tutor-parent relationship is an important relationship and unfortunately greatly overlooked. Why is it important? Well, a good relationship between you and ...