403Webshell
Server IP : 127.0.0.1  /  Your IP : 216.73.216.109
Web Server : Apache/2.4.54 (Win64) OpenSSL/1.1.1q PHP/8.1.10
System : Windows NT DESKTOP-E5T4RUN 10.0 build 19045 (Windows 10) AMD64
User : SERVERWEB ( 0)
PHP Version : 8.1.10
Disable Function : NONE
MySQL : OFF |  cURL : ON |  WGET : OFF |  Perl : OFF |  Python : OFF |  Sudo : OFF |  Pkexec : OFF
Directory :  C:/cygwin64/lib/python3.9/site-packages/urllib3/contrib/__pycache__/

Upload File :
current_dir [ Writeable] document_root [ Writeable]

 

Command :


[ Back ]     

Current File : C:/cygwin64/lib/python3.9/site-packages/urllib3/contrib/__pycache__/appengine.cpython-39.opt-2.pyc
a

�?�a+�@sddlmZddlZddlZddlZddlmZmZmZm	Z	m
Z
mZddlm
Z
ddlmZddlmZddlmZdd	lmZd
dlmZzddlmZWney�dZYn0e�e�ZGd
d�de�ZGdd�de�ZGdd�de�Z ej!Z!ej"Z"ej#Z#ej$Z$ej%Z%dS)�)�absolute_importN�)�	HTTPError�HTTPWarning�
MaxRetryError�
ProtocolError�SSLError�TimeoutError)�urljoin)�RequestMethods)�HTTPResponse)�Retry)�Timeout�)�_appengine_environ)�urlfetchc@seZdZdS)�AppEnginePlatformWarningN��__name__�
__module__�__qualname__�rr�=/usr/lib/python3.9/site-packages/urllib3/contrib/appengine.pyrGsrc@seZdZdS)�AppEnginePlatformErrorNrrrrrrKsrc@sTeZdZddd�Zdd�Zdd�Zddddejfd	d
�Zdd�Z	d
d�Z
dd�ZdS)�AppEngineManagerNTcCs@tstd��t�dt�t�||�||_||_|p8t	j
|_dS)Nz.URLFetch is not available in this environment.z�urllib3 is using URLFetch on Google App Engine sandbox instead of sockets. To use sockets directly instead of URLFetch see https://urllib3.readthedocs.io/en/1.26.x/reference/urllib3.contrib.html.)rr�warnings�warnrr�__init__�validate_certificate�urlfetch_retriesr
ZDEFAULT�retries)�self�headersr rrrrrrcs��zAppEngineManager.__init__cCs|S)Nr)r!rrr�	__enter__|szAppEngineManager.__enter__cCsdS)NFr)r!�exc_typeZexc_valZexc_tbrrr�__exit__szAppEngineManager.__exit__c
Ks�|�||�}zF|o |jdko |j}	tj||||p2id|jo<|	|�|�|jd�}
W�nNtjy�}zt	||��WYd}~�n&d}~0tj
y�}z*dt|�vr�td|��t
|��WYd}~n�d}~0tj�y}z.dt|�vr�t|||d��t
|��WYd}~n�d}~0tj�y>}ztd|��WYd}~nld}~0tj�yl}zt|��WYd}~n>d}~0tj�y�}ztd	||��WYd}~n
d}~00|j|
fd
|i|��}|�o�|��}
|
�r�|j�r�|j�r�t||d��n�|jdk�r�d
}z|j||||d�}Wn,t�y<|j�r4t||d��|YS0|�|�t�d||
�t||
�}|j||||f|||d�|��St|�d��}|� ||j|��r�|j||||d�}t�d|�|�!|�|j||f|||||d�|��S|S)NrF)Zpayload�methodr"Zallow_truncated�follow_redirectsZdeadlinerz	too largezOURLFetch request too large, URLFetch only supports requests up to 10mb in size.zToo many redirects)�reasonzPURLFetch response too large, URLFetch only supportsresponses up to 32mb in size.z$URLFetch does not support method: %sr ztoo many redirectsi/ZGET)�responseZ_poolzRedirecting %s -> %s)r �redirect�timeoutzRetry-Afterz	Retry: %s)�bodyr"r r*r+)"�_get_retriesr*�totalrZfetchr�_get_absolute_timeoutrZDeadlineExceededErrorr	ZInvalidURLError�strrrZ
DownloadErrorrZResponseTooLargeErrorZSSLCertificateErrorrZInvalidMethodError�#_urlfetch_response_to_http_responseZget_redirect_locationZraise_on_redirect�statusZ	incrementZsleep_for_retry�log�debugr
�urlopen�boolZ	getheaderZis_retry�sleep)r!r&�urlr,r"r r*r+�response_kwr'r)�eZ
http_responseZredirect_locationZredirect_urlZhas_retry_afterrrrr5�s��
 �������



���
���zAppEngineManager.urlopencKs�t�r"|j�d�}|dkr"|jd=|j�d�}|dkrZ|�d�}|�d�d�|�|jd<tft�|j	�|j
|j|jd�|��}tft�|j	�|j|j|d�|��S)Nzcontent-encodingZdeflateztransfer-encodingZchunked�,)r,�msgr"r2)r,r"r2�original_response)�is_prod_appenginer"�get�split�remove�joinr�io�BytesIOZcontentZ
header_msgZstatus_code)r!Z
urlfetch_respr9Zcontent_encodingZtransfer_encoding�	encodingsr=rrrr1�s2


��

��z4AppEngineManager._urlfetch_response_to_http_responsecCsB|tjurdSt|t�r>|jdus,|jdur8t�dt�|jS|S)NzdURLFetch does not support granular timeout settings, reverting to total or default URLFetch timeout.)	r�DEFAULT_TIMEOUT�
isinstanceZ_readZ_connectrrrr.)r!r+rrrr/s

�z&AppEngineManager._get_absolute_timeoutcCs>t|t�stj|||jd�}|js.|js.|jr:t�dt	�|S)N)r*�defaultzhURLFetch only supports total retries and does not recognize connect, read, or redirect retry parameters.)
rGr
Zfrom_intr Zconnect�readr*rrr)r!r r*rrrr-&s
�zAppEngineManager._get_retries)NNTT)rrrrr#r%rrFr5r1r/r-rrrrrOs �
�
r$
r)&Z
__future__rrCZloggingr�
exceptionsrrrrrr	Zpackages.six.moves.urllib.parser
Zrequestrr)rZ
util.retryr
Zutil.timeoutr�rZgoogle.appengine.apir�ImportErrorZ	getLoggerrr3rrrZis_appengineZis_appengine_sandboxZis_local_appenginer>Zis_prod_appengine_mvmsrrrr�<module>)s0 

h

Youez - 2016 - github.com/yon3zu
LinuXploit