403Webshell
Server IP : 178.105.222.151  /  Your IP : 216.73.216.38
Web Server : nginx/1.28.3
System : Linux MNK 7.0.0-15-generic #15-Ubuntu SMP PREEMPT_DYNAMIC Wed Apr 22 16:06:43 UTC 2026 x86_64
User : www-data ( 33)
PHP Version : 8.5.4
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : OFF
Directory :  /lib/python3/dist-packages/requests/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /lib/python3/dist-packages/requests/__pycache__/sessions.cpython-314.pyc
+
�i'w���Rt^RIt^RIt^RIt^RIHt^RIHt^RIH	t	^RI
Ht^RIH
t
^RIHtHtHtHt^RIHtHtHtHt^R	IHtHtHtHt^R
IHtHt^RI H!t!H"t"H#t#H$t$^RI%H&t&^R
I'H(t(^RI)H*t*H+t+H,t,H-t-H.t.H/t/H0t0H1t1H2t2H3t3]PhR8Xd]Pjt6M]Pt6]3Rlt7]3Rlt8!RR4t9!RR]94t:Rt;R#)z�
requests.sessions
~~~~~~~~~~~~~~~~~

This module provides a Session object to manage and persist settings across
requests (cookies, auth, proxies).
N)�OrderedDict)�	timedelta)�to_native_string)�HTTPAdapter)�_basic_auth_str)�Mapping�	cookielib�urljoin�urlparse)�RequestsCookieJar�cookiejar_from_dict�extract_cookies_to_jar�
merge_cookies)�ChunkedEncodingError�ContentDecodingError�
InvalidSchema�TooManyRedirects)�
default_hooks�
dispatch_hook)�DEFAULT_REDIRECT_LIMIT�REDIRECT_STATI�PreparedRequest�Request)�codes)�CaseInsensitiveDict)
�
DEFAULT_PORTS�default_headers�get_auth_from_url�get_environ_proxies�get_netrc_auth�requote_uri�resolve_proxies�rewind_body�should_bypass_proxies�to_key_val_list�win32c�D�VfV#VfV#\V\4'd\V\4'gV#V!\V44pVP\V44VP	4UUu.uF
wrEVeKVNK	pppVFpW7K	V#uuppi)z�Determines appropriate setting for a given request, taking into account
the explicit setting on that request, and the setting in the session. If a
setting is a dictionary, they will be merged together using `dict_class`
)�
isinstancerr$�update�items)�request_setting�session_setting�
dict_class�merged_setting�k�v�	none_keys�keys&&&     �3/usr/lib/python3/dist-packages/requests/sessions.py�
merge_settingr3=s�����������	�?�G�,�,��O�W�1U�1U������ @�A�N����/�/�:�;�"0�!5�!5�!7�E�!7�v��1���!7�I�E���������	Fs�9B�Bc��VeVPR4.8XdV#VeVPR4.8XdV#\WV4#)z�Properly merges both requests and session hooks.

This is necessary because when request_hooks == {'response': []}, the
merge breaks Session hooks entirely.
�response)�getr3)�
request_hooks�
session_hooksr,s&&&r2�merge_hooksr9[sM����
� 1� 1�*� =�� C�����
� 1� 1�*� =�� C�����z�B�B�c�Ha�]tRt^jtoRtRtR	RltRtRtRt	Rt
VtR#)
�SessionRedirectMixinc��VP'd1VPR,pVPR4p\VR4#R#)z7Receives a Response. Returns a redirect URI or ``None``�location�latin1�utf8N)�is_redirect�headers�encoder)�self�respr>s&& r2�get_redirect_target�(SessionRedirectMixin.get_redirect_targetks>�������|�|�J�/�H� ���x�0�H�#�H�f�5�5�r:c��\V4p\V4pVPVP8wdR#VPR8Xd6VPR9d%VPR8XdVPR9dR#VPVP8gpVPVP8gp\P
!VPR4R3pV'g%VPV9dVPV9dR#T;'gT#)zFDecide whether Authorization header should be removed when redirectingT�httpN�httpsF)�PN)i�N)r
�hostname�scheme�portrr6)rD�old_url�new_url�
old_parsed�
new_parsed�changed_port�changed_scheme�default_ports&&&     r2�should_strip_auth�&SessionRedirectMixin.should_strip_auths����g�&�
��g�&�
����*�"5�"5�5��
����'����:�-��!�!�W�,����;�.��"���*�/�/�9��#�*�*�j�.?�.?�?��%�)�)�*�*;�*;�T�B�D�I������<�/����<�/���-�-�~�-r:Nc	+�l"�.p
VPV4p\VP4PpV'Ed<VP	4p
V
PV4V
R,VnVP\VP4VP8�d\RVPR2VR7hVP!4VP#R4'd<\VP4pRP%\'VP(4V.4p\V4pVPR	8XdV'dVP+VR
7pMVP'd
VPpVP-4pVP.'g!\1VP\3V44pM\3V4p\'V4V
nVP5W�4VP6\8P:\8P<39d/RpVFpV
P>PAVR
4K!	R
V
n!V
P>pVPARR
4\EV
PFW!P4\IV
PFVPJ4V
PMV
PF4VPOW�4pVPQW�4V
PRR
J;'dRV9;'gRV9pV'd\UV
4T
pV'dVx�EK�VPV!V3RVRVRVRVRVRR/V	Bp\EVPJW�P4VPV4pVx�EKDR
# \\\3d!TPPRR7EL6i;i5i)zBReceives a Response. Returns a generator of Responses or Requests.:�NNF)�decode_contentz	Exceeded z redirects.)r5z//�:�)�fragment�Content-Length�Transfer-EncodingN�Cookie�stream�timeout�verify�cert�proxies�allow_redirects)r^zContent-Typer_),rFr
�urlr]�copy�append�history�contentrr�RuntimeError�raw�read�len�
max_redirectsr�close�
startswith�joinrrM�_replace�geturl�netlocr	r �rebuild_method�status_coder�temporary_redirect�permanent_redirectrB�pop�bodyr
�_cookiesr�cookies�prepare_cookies�rebuild_proxies�rebuild_auth�_body_positionr"�send)rDrE�reqrarbrcrdre�yield_requests�adapter_kwargs�histrg�previous_fragment�prepared_request�parsed_rurl�parsed�purged_headers�headerrB�
rewindables&&&&&&&&&,          r2�resolve_redirects�&SessionRedirectMixin.resolve_redirects�sR������&�&�t�,��$�S�W�W�-�6�6���c�"�x�x�z��
�K�K�����8�D�L�
4�����4�<�<� �D�$6�$6�6�&��� 2� 2�3�;�?�$���

�J�J�L��~�~�d�#�#�&�t�x�x�0���h�h� 0��1C�1C� D�c�J�K���c�]�F����"�$�):����2C��D������$*�O�O�!��-�-�/�C�
�=�=�=��d�h�h��C�(8�9��!�#�&��#3�C�#8�� ���� 0�7�����(�(��(�(�(��
"Y��,�F�$�,�,�0�0���>�-�(,� �%�&�.�.�G��K�K��$�'�

#�#3�#<�#<�c�8�8�L��*�3�3�T�\�\�B��,�,�-=�-F�-F�G��*�*�+;�E�G����.�5�
*�8�8��D��� �G�+�M�M�/B�g�/M�
�
��,�-�#�C���	��y�y��	�!�	�$�	�"�		�
�	�$�
	�%*�	�%�	��'�t�|�|�5E�x�x�P��.�.�t�4���
�O��)�*>��M�
4����
�
�U�
�3�
4�s\�;N4�/N4�.M;�:A%N4� AN4�?$N4�$-N4�E%N4�8
N4�N4�A N4�;2N1�-N4�0N1�1N4c��VPpVPpRV9d0VPVPPV4'dVRVP'd\V4MRpVeVP
V4R#R#)z�When being redirected we may want to strip authentication from the
request to avoid leaking credentials. This method intelligently removes
and reapplies authentication where possible to avoid credential loss.
�
AuthorizationN)rBrgrV�request�	trust_envr�prepare_auth)rDr�r5rBrg�new_auths&&&   r2r��!SessionRedirectMixin.rebuild_auths~��
#�*�*���"�"���g�%�$�*@�*@���� � �#�+
�+
�
��(�+/�.�.�.�>�#�&�d�����)�)�(�3� r:c�V�VPp\VP4Pp\	WVP
4pRV9dVR\
WT,4wrgVPR4'gV'dV'd\Wg4VR&V# \dRRrvLGi;i)apThis method re-evaluates the proxy configuration by considering the
environment variables. If we are redirected to a URL covered by
NO_PROXY, we strip the proxy configuration. Otherwise, we set missing
proxy keys for this URL (in case they were stripped by a previous
redirect).

This method also replaces the Proxy-Authorization header where
necessary.

:rtype: dict
zProxy-AuthorizationNrJ)
rBr
rgrMr!r�r�KeyErrorrrr)rDr�rerBrM�new_proxies�username�passwords&&&     r2r��$SessionRedirectMixin.rebuild_proxies.s���#�*�*���*�.�.�/�6�6��%�&6����P�� �G�+��-�.�	,�!2�;�3F�!G��H�� � ��)�)�h�8�-<�X�-P�G�)�*�����	,�!%�t�h�	,�s�
B�B(�'B(c��VPpVP\P8Xd
VR8wdRpVP\P8Xd
VR8wdRpVP\P
8Xd
VR8XdRpW1nR#)zrWhen being redirected we may want to change the method of the request
based on certain specs or browser behavior.
�HEAD�GET�POSTN)�methodrxr�	see_other�found�moved)rDr�r5r�s&&& r2rw�#SessionRedirectMixin.rebuild_methodMsu��"�(�(�����5�?�?�2�v��7G��F����5�;�;�.�6�V�3C��F����5�;�;�.�6�V�3C��F�"(�r:�)FNTNNF)�__name__�
__module__�__qualname__�__firstlineno__rFrVr�r�r�rw�__static_attributes__�__classdictcell__��
__classdict__s@r2r<r<js+�����(.�@y�v4�(�>)�)r:r<c�a�]tRtRtoRt.ROtRtRtRtRt	RRlt
R	tR
tRt
RRltRR
ltRRltRtRtRtRtRtRtRtRtRtVtR#)�SessionidaTA Requests session.

Provides cookie persistence, connection-pooling, and configuration.

Basic Usage::

  >>> import requests
  >>> s = requests.Session()
  >>> s.get('https://httpbin.org/get')
  <Response [200]>

Or as a context manager::

  >>> with requests.Session() as s:
  ...     s.get('https://httpbin.org/get')
  <Response [200]>
c�`�\4VnRVn/Vn\	4Vn/VnRVnRVnRVn	\VnRVn\/4Vn\4VnVP#R\%44VP#R\%44R#)NFTzhttps://zhttp://)rrB�authrer�hooks�paramsrarcrdrrpr�rr~r�adapters�mountr�rDs&r2�__init__�Session.__init__�s���'�(�����	�
���#�_��
�
�����������	�4������+�2�.���$�
��
��
�
�:�{�}�-��
�
�9�k�m�,r:c��V#�Nr�r�s&r2�	__enter__�Session.__enter__�s���r:c�&�VP4R#r�)rq)rD�argss&*r2�__exit__�Session.__exit__�s���
�
�r:c�"�VP;'g/p\V\P4'g\	V4p\\\
4VP4V4pVPpVP'd0V'g(VP'g\VP4p\4pVPVPP4VPVPVP VP"\%VP&VP&\(R7\%VP*VP*4\%W@P4V\-VP.VP.4R7
V#)aSConstructs a :class:`PreparedRequest <PreparedRequest>` for
transmission and returns it. The :class:`PreparedRequest` has settings
merged from the :class:`Request <Request>` instance and those of the
:class:`Session`.

:param request: :class:`Request` instance to prepare with this
    session's settings.
:rtype: requests.PreparedRequest
)r,)
r�rg�files�data�jsonrBr�r�r~r�)r~r'r�	CookieJarrrrr�r�rrgr�preparer��upperr�r�r�r3rBrr�r9r�)rDr�r~�merged_cookiesr��ps&&    r2�prepare_request�Session.prepare_request�s���/�/�'�'�R���'�9�#6�#6�7�7�)�'�2�G�'��+�-�t�|�|�<�g�
��
�|�|���>�>�>�$�t�y�y�y�!�'�+�+�.�D����	�	�	��>�>�'�'�)�����-�-�������!�������:M��!�������=��t�Y�Y�/�"��g�m�m�T�Z�Z�8�	�
	
��r:Nc
�<�\VP4TTTT;'g/TT;'g/VVVR7
pVPV4pT;'g/pVPVPW�W�4pRV	RV
/pVPV4VP!V3/VBpV#)a�Constructs a :class:`Request <Request>`, prepares it and sends it.
Returns :class:`Response <Response>` object.

:param method: method for the new :class:`Request` object.
:param url: URL for the new :class:`Request` object.
:param params: (optional) Dictionary or bytes to be sent in the query
    string for the :class:`Request`.
:param data: (optional) Dictionary, list of tuples, bytes, or file-like
    object to send in the body of the :class:`Request`.
:param json: (optional) json to send in the body of the
    :class:`Request`.
:param headers: (optional) Dictionary of HTTP Headers to send with the
    :class:`Request`.
:param cookies: (optional) Dict or CookieJar object to send with the
    :class:`Request`.
:param files: (optional) Dictionary of ``'filename': file-like-objects``
    for multipart encoding upload.
:param auth: (optional) Auth tuple or callable to enable
    Basic/Digest/Custom HTTP Auth.
:param timeout: (optional) How many seconds to wait for the server to send
    data before giving up, as a float, or a :ref:`(connect timeout,
    read timeout) <timeouts>` tuple.
:type timeout: float or tuple
:param allow_redirects: (optional) Set to True by default.
:type allow_redirects: bool
:param proxies: (optional) Dictionary mapping protocol or protocol and
    hostname to the URL of the proxy.
:param hooks: (optional) Dictionary mapping hook name to one event or
    list of events, event must be callable.
:param stream: (optional) whether to immediately download the response
    content. Defaults to ``False``.
:param verify: (optional) Either a boolean, in which case it controls whether we verify
    the server's TLS certificate, or a string, in which case it must be a path
    to a CA bundle to use. Defaults to ``True``. When set to
    ``False``, requests will accept any TLS certificate presented by
    the server, and will ignore hostname mismatches and/or expired
    certificates, which will make your application vulnerable to
    man-in-the-middle (MitM) attacks. Setting verify to ``False``
    may be useful during local development or testing.
:param cert: (optional) if String, path to ssl client cert file (.pem).
    If Tuple, ('cert', 'key') pair.
:rtype: requests.Response
)
r�rgrBr�r�r�r�r�r~r�rbrf)rr�r��merge_environment_settingsrgr(r�)rDr�rgr�r�rBr~r�r�rbrfrer�rarcrdr�r��prep�settings�send_kwargsrEs&&&&&&&&&&&&&&&&&     r2r��Session.request�s���~��<�<�>����������<�<�R����
���#�#�C�(���-�-�R���2�2��H�H�g�v�
��
�w���
��	���8�$��y�y��-��-���r:c�N�VPRR4VP!RV3/VB#)z�Sends a GET request. Returns :class:`Response` object.

:param url: URL for the new :class:`Request` object.
:param \*\*kwargs: Optional arguments that ``request`` takes.
:rtype: requests.Response
rfTr���
setdefaultr��rDrg�kwargss&&,r2r6�Session.getQs+��	���+�T�2��|�|�E�3�1�&�1�1r:c�N�VPRR4VP!RV3/VB#)z�Sends a OPTIONS request. Returns :class:`Response` object.

:param url: URL for the new :class:`Request` object.
:param \*\*kwargs: Optional arguments that ``request`` takes.
:rtype: requests.Response
rfT�OPTIONSr�r�s&&,r2�options�Session.options\s+��	���+�T�2��|�|�I�s�5�f�5�5r:c�N�VPRR4VP!RV3/VB#)z�Sends a HEAD request. Returns :class:`Response` object.

:param url: URL for the new :class:`Request` object.
:param \*\*kwargs: Optional arguments that ``request`` takes.
:rtype: requests.Response
rfFr�r�r�s&&,r2�head�Session.headgs+��	���+�U�3��|�|�F�C�2�6�2�2r:c�2�VP!RV3RVRV/VB#)a�Sends a POST request. Returns :class:`Response` object.

:param url: URL for the new :class:`Request` object.
:param data: (optional) Dictionary, list of tuples, bytes, or file-like
    object to send in the body of the :class:`Request`.
:param json: (optional) json to send in the body of the :class:`Request`.
:param \*\*kwargs: Optional arguments that ``request`` takes.
:rtype: requests.Response
r�r�r��r�)rDrgr�r�r�s&&&&,r2�post�Session.postrs$���|�|�F�C�H�d�H��H��H�Hr:c�.�VP!RV3RV/VB#)aESends a PUT request. Returns :class:`Response` object.

:param url: URL for the new :class:`Request` object.
:param data: (optional) Dictionary, list of tuples, bytes, or file-like
    object to send in the body of the :class:`Request`.
:param \*\*kwargs: Optional arguments that ``request`` takes.
:rtype: requests.Response
�PUTr�r��rDrgr�r�s&&&,r2�put�Session.puts���|�|�E�3�<�T�<�V�<�<r:c�.�VP!RV3RV/VB#)aGSends a PATCH request. Returns :class:`Response` object.

:param url: URL for the new :class:`Request` object.
:param data: (optional) Dictionary, list of tuples, bytes, or file-like
    object to send in the body of the :class:`Request`.
:param \*\*kwargs: Optional arguments that ``request`` takes.
:rtype: requests.Response
�PATCHr�r�r�s&&&,r2�patch�
Session.patch�s���|�|�G�S�>�t�>�v�>�>r:c�*�VP!RV3/VB#)z�Sends a DELETE request. Returns :class:`Response` object.

:param url: URL for the new :class:`Request` object.
:param \*\*kwargs: Optional arguments that ``request`` takes.
:rtype: requests.Response
�DELETEr�r�s&&,r2�delete�Session.delete�s���|�|�H�c�4�V�4�4r:c��VPRVP4VPRVP4VPRVP4RV9d$\	WP
VP4VR&\V\4'd\R4hVPRR4pVPR4pVPpVPVPR7p\4pVP !V3/VBp\4V,
p	\#V	R	7Vn\'R
WX3/VBpVP('d?VP(F.p
\+VP,V
P.V
P04K0	\+VP,WP04V'd%VP2!W�3/VBpVU
u.uFq�NK	pp
M.pV'd)VP5^V4VP4pW�nV'g%\7VP2!W�3RR/VB4VnV'g
VP<V#uup
i \:dL(i;i)z9Send a given PreparedRequest.

:rtype: requests.Response
rarcrdrez#You can only send PreparedRequests.rfT)rg)�secondsr5r�)r�rarcrdr!rer�r'r�
ValueErrorr{r6r��get_adapterrg�preferred_clockr�r�elapsedrrjr
r~r�rmr��insert�next�_next�
StopIterationrk)
rDr�r�rfrar��adapter�start�rr�rE�genrjs
&&,          r2r��Session.send�s��	���(�D�K�K�0����(�D�K�K�0����&�$�)�)�,��F�"� /����t�~�~� V�F�9���g�w�'�'��B�C�C�!�*�*�%6��=�����H�%���
�
���"�"�w�{�{�"�3�� �!��
�L�L��+�F�+��"�#�e�+���g�.��	�
�*�e�9�&�9��
�9�9�9��	�	��&�t�|�|�T�\�\�4�8�8�L�"�	�t�|�|�W�e�e�<���(�(��>�v�>�C�(+�,���t��G�,�G��G���N�N�1�a� ����
�A��I��
���*�*�1�U�d�U�f�U�����
�I�I����1-��$!�
��
�s�
I�#I�I�Ic�0�VP'd�VeVPR4MRp\WR7pVP4Fwr�VP	W�4K	VRJgVfQ\
PPR4;'g*\
PPR4;'gTp\W P4p\W0P4p\W@P4p\WPP4pRVRVR	VR
V/#)zF
Check the environment and merge it with some settings.

:rtype: dict
N�no_proxy)rT�REQUESTS_CA_BUNDLE�CURL_CA_BUNDLErerarcrd)r�r6rr)r��os�environr3rerarcrd)
rDrgrerarcrdr�env_proxiesr.r/s
&&&&&&    r2r��"Session.merge_environment_settings�s����>�>�>�29�2E�w�{�{�:�.�4�H�-�c�E�K�#�)�)�+����"�"�1�(�,�
��~����J�J�N�N�#7�8����z�z�~�~�&6�7����� ����6���v�{�{�3���v�{�{�3���T�9�9�-���7�H�f�h���PT�U�Ur:c���VPP4F<wr#VP4PVP44'gK:Vu#	\	RV:24h)zf
Returns the appropriate connection adapter for the given URL.

:rtype: requests.adapters.BaseAdapter
z&No connection adapters were found for )r�r)�lowerrrr)rDrg�prefixr�s&&  r2r��Session.get_adapter
sT�� $�}�}�2�2�4�O�F��y�y�{�%�%�f�l�l�n�5�5��� 5�
�D�S�G�L�M�Mr:c�h�VPP4FpVP4K	R#)z+Closes all adapters and as such the sessionN)r��valuesrq)rDr/s& r2rq�
Session.closes"�����%�%�'�A�
�G�G�I�(r:c��W PV&VPUu.uF p\V4\V48gKVNK"	ppVF+pVPPV4VPV&K-	R#uupi)zgRegisters a connection adapter to a prefix.

Adapters are sorted in descending order by prefix length.
N)r�ror{)rDrr�r.�keys_to_mover1s&&&   r2r��
Session.mountsf��
!(�
�
�f��#'�=�=�I�=�a�C��F�S��[�4H���=��I��C�!%���!2�!2�3�!7�D�M�M�#�� ��Js
�A8�A8c	�Z�VPUu/uFq\WR4bK	ppV#uupir�)�	__attrs__�getattr)rD�attr�states&  r2�__getstate__�Session.__getstate__*s/��=A�^�^�L�^�T�w�t�4�0�0�^��L����Ms�(c�P�VP4Fwr#\WV4K	R#r�)r)�setattr)rDrr�values&&  r2�__setstate__�Session.__setstate__.s�� �;�;�=�K�D��D��&�)r:)r�r�rdr~rBr�rpr�rerar�rc)rBr~r�rer�r�rcrdr�rar�rp)NNNNNNNTNNNNNN)NNr�)r�r�r�r��__doc__rr�r�r�r�r�r6r�r�r�r�r�r�r�r�r�rqr�rrr�r�r�s@r2r�r�ds~�����$
�I�;-�z��)�V[�z	2�	6�	3�I�
=�
?�5�K�ZV�>N��
	8��'�'r:r�c��\4#)a>
Returns a :class:`Session` for context-management.

.. deprecated:: 1.0.0

    This method has been deprecated since version 1.0.0 and is only kept for
    backwards compatibility. New code should use :class:`~requests.sessions.Session`
    to create a session. This may be removed at a future date.

:rtype: Session
)r�r�r:r2�sessionr!3s���9�r:)<rr�sys�time�collectionsr�datetimer�_internal_utilsrr�rr�r�compatrrr	r
r~rrr
r�
exceptionsrrrrr�rr�modelsrrrr�status_codesr�
structuresr�utilsrrrrrr r!r"r#r$�platform�perf_counterr�r3r9r<r�r!r�r:r2�<module>r/s����
�
��#��-�!�!�9�9�����0��� �+�����<�<�7���'�'�O��i�i�O�@K��<:E�C�w)�w)�tL'�"�L'�^r:

Youez - 2016 - github.com/yon3zu
LinuXploit