Spamworldpro Mini Shell
Spamworldpro


Server : Apache/2.4.62 (Unix) OpenSSL/1.0.2k-fips
System : Linux server1.richineiserver.com 3.10.0-1160.119.1.el7.x86_64 #1 SMP Tue Jun 4 14:43:51 UTC 2024 x86_64
User : fdshops ( 1003)
PHP Version : 8.2.21
Disable Function : NONE
Directory :  /lib/python2.7/site-packages/requests_toolbelt/auth/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //lib/python2.7/site-packages/requests_toolbelt/auth/http_proxy_digest.pyc
�
ӵ Yc@sUdZddlZddlmZmZddlmZdejfd��YZ	dS(s*The module containing HTTPProxyDigestAuth.i����N(tcookiestutilsi(t_digest_auth_compattHTTPProxyDigestAuthcBskeZdZejddej�Zd�Zed��Z	e	j
d��Z	d�Zd�Zd�Z
RS(	sOHTTP digest authentication between proxy

    :param stale_rejects: The number of rejects indicate that:
        the client may wish to simply retry the request
        with a new encrypted response, without reprompting the user for a
        new username and password. i.e., retry build_digest_header
    :type stale_rejects: int
    sdigest tflagscOs0tt|�j||�d|_|j�dS(Ni(tsuperRt__init__t
stale_rejectstinit_per_thread_state(tselftargstkwargs((sL/usr/lib/python2.7/site-packages/requests_toolbelt/auth/http_proxy_digest.pyRs	cCs,t|dd�}|dkr%|jS|jS(Nt
_thread_local(tgetattrtNonet_stale_rejectsR(R	tthread_local((sL/usr/lib/python2.7/site-packages/requests_toolbelt/auth/http_proxy_digest.pyRscCs7t|dd�}|dkr*||_n	||_dS(NR(R
RRR(R	tvalueR((sL/usr/lib/python2.7/site-packages/requests_toolbelt/auth/http_proxy_digest.pyR"scCs/ytt|�j�Wntk
r*nXdS(N(RRRtAttributeError(R	((sL/usr/lib/python2.7/site-packages/requests_toolbelt/auth/http_proxy_digest.pyR*s
cKs�|jdkr�|jdkr�|jjd�}|d
krKtd��n|jj|�sa|Stj	|jj
d|dd��|_d|jjkr�d	|jkr�|jd	j
�d
kr�|jd7_q�|jd	j
�dkr�td��q�n|j|j�|jj�}tj|j|j|j�|j|j�|j|j|j�|jd<|jj||�}|jj|�||_|S|Sd
S(s�Handle HTTP 407 only once, otherwise give up

        :param r: current response
        :returns: responses, along with the new response
        i�isproxy-authenticatesRproxy server violated RFC 7235:407 response MUST contain header proxy-authenticatettcountisProxy-AuthorizationtstalettruetfalsesUser or password is invalidN(tstatus_codeRtheaderstgetRtIOErrort_pattmatchRtparse_dict_headertsubtchaltrequesttlowertcontenttclosetcopyRtextract_cookies_to_jart_cookiestrawtprepare_cookiestbuild_digest_headertmethodturlt
connectiontsendthistorytappend(R	trRts_authtprept_r((sL/usr/lib/python2.7/site-packages/requests_toolbelt/auth/http_proxy_digest.pyt
handle_4071s6!
	cCsL|j�|jr5|j|j|j�|jd<n|jd|j�|S(NsProxy-Authorizationtresponse(Rt
last_nonceR*R+R,Rt
register_hookR5(R	R1((sL/usr/lib/python2.7/site-packages/requests_toolbelt/auth/http_proxy_digest.pyt__call___s
	(t__name__t
__module__t__doc__tretcompilet
IGNORECASERRtpropertyRtsetterRR5R9(((sL/usr/lib/python2.7/site-packages/requests_toolbelt/auth/http_proxy_digest.pyR
s			.(
R<R=trequestsRRRRtauthtHTTPDigestAuthR(((sL/usr/lib/python2.7/site-packages/requests_toolbelt/auth/http_proxy_digest.pyt<module>s

Spamworldpro Mini