GIF89a=( õ' 7IAXKgNgYvYx\%wh…hŽth%ˆs%—x¨}9®Œ©€&©‰%¶†(¹–.¹5·œD¹&Çš)ÇŸ5ǘ;Í£*È¡&Õ²)ׯ7×µ<Ñ»4ï°3ø‘HÖ§KͯT÷¨Yÿšqÿ»qÿÔFØ !ù ' !ÿ NETSCAPE2.0 , =( þÀ“pH,È¤rÉl:ŸÐ¨tJ­Z¯Ø¬vËíz¿à°xL.›Ïè´zÍn»ßð¸|N¯Ûïø¼~Ïïûÿ€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ ¡¢£¤¥¦§gª«ªE¯°¨¬ª±²Œ¹º¹E¾­”´ÂB¶¯ §Åȸ»ÑD¾¿Á•ÄÅ®° ÝH¾ÒLÀÆDÙ«D¶BÝïðÀ¾DÑÑÔTÌÍíH òGö¨A RÎڐ |¥ ٭&ºìE8œ¹kGÔAÞpx­a¶­ã R2XB®åE8I€Õ6Xî:vT)äžþÀq¦è³¥ì仕F~%xñ  4#ZÔ‰O|-4Bs‘X:= QÉ œš lºÒyXJŠGȦ|s hÏíK–3l7·B|¥$'7Jީܪ‰‡àá”Dæn=Pƒ ¤Òëí‰`䌨ljóá¯Éüv>á–Á¼5 ½.69ûϸd«­ºÀûnlv©‹ªîf{¬ÜãPbŸ  l5‘ޝpß ´ ˜3aÅùäI«O’ý·‘áÞ‡˜¾Æ‚ÙÏiÇÿ‹Àƒ #öó)pâš Þ½ ‘Ý{ó)vmÞü%D~ 6f s}ŃƒDØW Eþ`‡þ À…L8xá†ç˜{)x`X/> Ì}mø‚–RØ‘*|`D=‚Ø_ ^ð5 !_…'aä“OÚ—7âcð`D”Cx`ÝÂ¥ä‹éY¹—F¼¤¥Š?¡Õ™ n@`} lď’ÄÉ@4>ñd œ à‘vÒxNÃ×™@žd=ˆgsžG±æ ´²æud &p8Qñ)ˆ«lXD©øÜéAžHìySun jª×k*D¤LH] †¦§C™Jä–´Xb~ʪwStŽ6K,°£qÁœ:9ت:¨þªl¨@¡`‚ûÚ ».Û¬¯t‹ÆSÉ[:°=Š‹„‘Nåû”Ìî{¿ÂA ‡Rà›ÀÙ6úë°Ÿð0Ä_ ½;ÃϱîÉì^ÇÛÇ#Ëë¼ôº!±Ä˜íUîÅÇ;0L1óÁµö«p% AÀºU̬ݵ¼á%霼€‡¯Á~`ÏG¯»À× ­²± =4ªnpð3¾¤³¯­ü¾¦îuÙuµÙ®|%2ÊIÿür¦#0·ÔJ``8È@S@5ê¢ ö×Þ^`8EÜ]ý.뜃Âç 7 ú ȉÞj œ½Dç zý¸iþœÑÙûÄë!ˆÞÀl§Ïw‹*DçI€nEX¯¬¼ &A¬Go¼QföõFç°¯;é¦÷îŽêJ°îúôF5¡ÌQ|îúöXªæ»TÁÏyñêï]ê² o óÎC=öõ›ÒÓPB@ D×½œä(>èCÂxŽ`±«Ÿ–JЀ»Û á¤±p+eE0`ëŽ`A Ú/NE€Ø†À9‚@¤à H½7”à‡%B‰`Àl*ƒó‘–‡8 2ñ%¸ —€:Ù1Á‰E¸àux%nP1ð!‘ðC)¾P81lÑɸF#ˆ€{´âé°ÈB„0>±û °b¡Š´±O‚3È–Ù()yRpbµ¨E.Z‘D8ÊH@% òŒx+%Ù˜Æcü »¸˜fõ¬b·d`Fê™8èXH"ÉÈ-±|1Ô6iI, 2““¬$+](A*jÐ QTÂo‰.ÛU슬Œã„Ž`¯SN¡–¶Äåyše¯ª’­¬‚´b¦Éož œ)åyâ@Ì®3 ÎtT̉°&Ø+žLÀf"Ø-|žçÔ>‡Ðv¦Ðžì\‚ Q1)Ž@Žh#aP72”ˆ™¨$‚ !ù " , =( …7IAXG]KgNgYvYxR"k\%w]'}hŽth%ˆg+ˆs%—r.—m3šx3˜x¨}9®€&©€+¨‡7§‰%¶†(¹–.¹œD¹&ǘ;Í•&ײ)×»4ïÌ6ò§KÍ þ@‘pH,È¤rÉl:ŸÐ¨tJ­Z¯Ø¬vËíz¿à°xL.›Ïè´zÍn»ßð¸|N¯Ûïø¼~Ïïûÿ€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ ¡¢£¤¥¦§g «¬ E ±± ¨­¶°ººE Á´”·®C¬²§Ç¶Œ»ÓDÃÕƷ¯Ê±H½ºM×ÁGÚ¬D¶BËÁ½î½DÓôTÏÛßîG»ôõC×CÌ l&âž:'òtU³6ɹ#·Ø)€'Ü.6±&ëÍÈ» K(8p0N?!æ2"ÛˆNIJX>R¼ÐO‚M '¡¨2¸*Ÿþ>#n↠å@‚<[:¡Iïf’ ¤TÚ˘CdbÜÙ“[«ŽEú5MBo¤×@€`@„€Êt W-3 ¶Ÿ¡BíêäjIÝ…Eò9[T…$íêﯧ„…•s»Óȳ¹€ÅÚdc®UUρ#±Ùïldj?´í¼²`\ŽÁðÞu|3'ÖŒ]ë6 ¶S#²‡˜FKLÈ *N E´‘áäŠ$˜›eÄYD„ºq«.è촁ƒs \-ÔjA 9²õ÷å- üúM[Âx(ís÷ì®x€|í¡Ù’p¦‚ ŽkÛTÇDpE@WÜ ²Ç]kŠ1¨ þ€·Yb ÓÁ‰l°*n0 ç™—žzBdОu¾7ĉBl€â‰-ºx~|UåU‰  h*Hœ|e"#"?vpÄiŠe6^ˆ„+qâŠm8 #VÇá ‘å–ÄV„œ|Аè•m"сœn|@›U¶ÆÎž—Špb¥G¨ED”€±Úê2FÌIç? >Éxå Œ± ¡¤„%‘žjŸ‘ꄯ<Ìaà9ijÐ2˜D¦È&›†Z`‚å]wþ¼Â:ç6àB¤7eFJ|õÒ§Õ,¨äàFÇ®cS·Ê¶+B°,‘Þ˜ºNûãØ>PADÌHD¹æž«ÄÀnÌ¥}­#Ë’ë QÀÉSÌÂÇ2ÌXÀ{æk²lQÁ2«ÊðÀ¯w|2Í h‹ÄÂG€,m¾¶ë3ÐÙ6-´ÅE¬L°ÆIij*K½ÀÇqï`DwVÍQXœÚÔpeœ±¬Ñ q˜§Tœ½µƒ°Œìu Â<¶aØ*At¯lmEØ ü ôÛN[P1ÔÛ¦­±$ÜÆ@`ùåDpy¶yXvCAyåB`ŽD¶ 0QwG#¯ æš[^Äþ $ÀÓÝǦ{„L™[±úKÄgÌ;ï£S~¹ìGX.ôgoT.»åˆ°ùŸûù¡?1zö¦Ÿž:ÅgÁ|ìL¹ „®£œŠ‚à0œ]PÁ^p F<"•ç?!,ñ‡N4—…PÄ Á„ö¨Û:Tè@hÀ‹%táÿ:ø-žI<`þ‹p I….)^ 40D#p@ƒj4–؀:²‰1Øâr˜¼F2oW¼#Z†;$Q q” ‘ ÂK¦ñNl#29 !’F@¥Bh·ᏀL!—XFóLH‘Kh¤.«hE&JòG¨¥<™WN!€ÑÙÚˆY„@†>Œž19J" 2,/ &.GXB%ÌRÈ9B6¹W]’î×ÔW¥’IÎ$ ñ‹ÓŒE8YÆ ¼³™ñA5“à®Q.aŸB€&Ø©³ JÁ—! ¦t)K%tœ-¦JF bòNMxLôþ)ÐR¸Ð™‘ èÝ6‘O!THÌ„HÛ ‰ !ù ) , =( …AXKgNgYvYxR"k\%wh…hŽh%ˆg+ˆs%—r.—x3˜x¨}9®€&©€+¨Œ,©‡7§‰%¶†(¹–.¹5·&Çš)ǘ;Í•&×£*Ȳ)ׯ7×»4ï°3øÌ6ò‘HÖ§KÍ»Hó¯T÷¨Yÿ»qÿÇhÿ þÀ”pH,È¤rÉl:ŸÐ¨tJ­Z¯Ø¬vËíz¿à°xL.›Ïè´zÍn»ßð¸|N¯Ûïø¼~Ïïûÿ€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ ¡¢£¤¥¦§g ª« E$±²¨ª­ · °²½$E$ÂÕ««D· Í ¿¦Ç¶¸ÌŒ¾³CÃÅÆ E ééH½MÛÂGâªD­ çBêêϾD²ÒaÀà€Š1r­ðÓ¤ ÔožzU!L˜C'¾yW½UGtäÇïÙllê0×àÂuGþ)AÀs[þ·xì ÁxO%ƒûX2ó—  P£n›R/¡ÑšHše+êDm?# —‘Ç£6¡8íJ¡ŸâDiäªM¥Ö„ôj“¬¹£5oQ7°- <‡ *´lãÓŒ2r/a!l)dÈ A™ÈE¢ôÔ͆…ð ;Ö˜c ¡%ß‚’Ùˆâ¸b½—pe~C"BíëÚHïeF2§æŠ8qb t_`urŠeü wÅu3êæPv§h•"ß`íÍxçLĹÜÖ3á  ~Öº“®›¸ÏMDfJÙ °„ÛµáWõ%§œ‚à©–‚X ÓØ)@®Ñ›Eþ´wëuÅSxb8y\mÖzœ¥§ZbºE—ÂLªÌw!y(>¡™wú=Ç|ÅÝs¢d €CÁW)HÜcC$€L Ä7„r.á\{)@ð` @ äXÈ$PD” `šaG:§æˆOˆ72EÐamn]ù"ŒcÊxÑŒ° &dR8`g«iÙŸLR!¦P …d’ä¡“¦ðÎTƒ¦ià|À _ ¥ Qi#¦Šg›Æ ›noMµ ›V ã£)p ç£ÎW…š=Âeªk§†j„ ´®1ß²sÉxéW«jšl|0¯B0Û, \jÛ´›6±¬¶C ÛíWþï|ëÙ‹¸ñzĸV {ì;Ýñn¼òVˆm³I¼³.Ðã¤PN¥ ²µ¼„µCã+¹ÍByî£Ñ¾HŸ›ëê 7ìYÆFTk¨SaoaY$Dµœìï¿Ã29RÈkt Çïfñ ÇÒ:ÀÐSp¹3ÇI¨â¥DZÄ ü9Ïýögñ½­uÔ*3)O‘˜Ö[_hv ,àî×Et Ÿé¶BH€ Õ[ü±64M@ÔSÌM7dÐl5-ÄÙU܍´©zߌ3Ô€3ž„ „ ¶ÛPô½5×g› êÚ˜kN„Ý…0Îj4€Ìë°“#{þÕ3S2çKÜ'ợlø¼Ú2K{° {Û¶?žm𸧠ËI¼nEò='êüóºè^üæÃ_Û=°óž‚ì#Oý¿Í'¡½áo..ÏYìnüñCœO±Áa¿¢Kô½o,üÄËbö²çºíï{ËC Ú— "”Ï{ËK ÍÒw„õ±Oz dÕ¨à:$ ƒô—«v»] A#ð «€¿šéz)Rx׿ˆ¥‚d``èw-îyÏf×K!ð€þ­Ð|ìPľ„=Ì`ý(f” 'Pa ¥ÐBJa%Ðâf§„%Š¡}FàáÝ×6>ÉäŠG"éŽè=ø!oа^FP¼Ø©Q„ÀCÙÁ`(Ž\ÄÝ® ©Â$<n@dÄ E#ììUÒI! ‚#lù‹`k¦ÐÇ'Rró’ZýNBÈMF Í[¤+‹ðɈ-áwj¨¥þ8¾rá ,VÂh„"|½œ=×G_¦Ñ™EØ 0i*%̲˜Æda0mV‚k¾)›;„&6 p>ÓjK “¦Ç# âDÂ:ûc?:R Ó¬fÞéI-Ì“•Ã<ä=™Ï7˜3œ¨˜c2ŒW ,ˆ”8(T™P‰F¡Jhç"‚ ; 403WebShell
403Webshell
Server IP : 104.21.83.152  /  Your IP : 216.73.216.195
Web Server : LiteSpeed
System : Linux premium229.web-hosting.com 4.18.0-553.45.1.lve.el8.x86_64 #1 SMP Wed Mar 26 12:08:09 UTC 2025 x86_64
User : akhalid ( 749)
PHP Version : 8.3.22
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /opt/hc_python/lib/python3.12/site-packages/requests/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /opt/hc_python/lib/python3.12/site-packages/requests/__pycache__/sessions.cpython-312.pyc
�

t��gw���dZddlZddlZddlZddlmZddlmZddlm	Z	ddl
mZddlm
Z
dd	lmZmZmZmZdd
lmZmZmZmZddlmZmZmZmZddlmZmZdd
l m!Z!m"Z"m#Z#m$Z$ddl%m&Z&ddl'm(Z(ddl)m*Z*m+Z+m,Z,m-Z-m.Z.m/Z/m0Z0m1Z1m2Z2m3Z3ejhdk(r
ejjZ6nejZ6efd�Z7efd�Z8Gd�d�Z9Gd�de9�Z:d�Z;y)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��|�|S|�|St|t�rt|t�s|S|t|��}|jt|��|j	�D��cgc]
\}}|��	|��}}}|D]}||=�|Scc}}w)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`
    )�
isinstancer	r&�update�items)�request_setting�session_setting�
dict_class�merged_setting�k�v�	none_keys�keys        �@/opt/hc_python/lib/python3.12/site-packages/requests/sessions.py�
merge_settingr5=s�����������	�?�G�,��O�W�1U������ @�A�N����/�/�:�;�"0�!5�!5�!7�E�!7�v��1�1�9��!7�I�E����3������	Fs�)
B�4Bc�|�|�|jd�gk(r|S|�|jd�gk(r|St|||�S)z�Properly merges both requests and session hooks.

    This is necessary because when request_hooks == {'response': []}, the
    merge breaks Session hooks entirely.
    �response)�getr5)�
request_hooks�
session_hooksr.s   r4�merge_hooksr;[sO����
� 1� 1�*� =�� C�����
� 1� 1�*� =�� C�����
�z�B�B�c�>�eZdZd�Zd�Z						dd�Zd�Zd�Zd�Zy)	�SessionRedirectMixinc�t�|jr,|jd}|jd�}t|d�Sy)z7Receives a Response. Returns a redirect URI or ``None``�location�latin1�utf8N)�is_redirect�headers�encoder)�self�respr@s   r4�get_redirect_targetz(SessionRedirectMixin.get_redirect_targetks;������|�|�J�/�H� ���x�0�H�#�H�f�5�5�r<c���t|�}t|�}|j|jk7ry|jdk(r,|jdvr|jdk(r|jdvry|j|jk7}|j|jk7}t	j
|jd�df}|s|j|vr|j|vry|xs|S)zFDecide whether Authorization header should be removed when redirectingT�http)�PN�https)i�NFN)r�hostname�scheme�portrr8)rF�old_url�new_url�
old_parsed�
new_parsed�changed_port�changed_scheme�default_ports        r4�should_strip_authz&SessionRedirectMixin.should_strip_auths����g�&�
��g�&�
����*�"5�"5�5��
����'����:�-��!�!�W�,����;�.��"���*�/�/�9��#�*�*�j�.?�.?�?��%�)�)�*�*;�*;�T�B�D�I������<�/����<�/���-�~�-r<Nc	
+��K�g}
|j|�}t|j�j}|�r�|j	�}
|
j|�|
dd|_	|jt|j�|jk\rtd|j�d�|���|j!�|j#d�r;t|j�}d	j%t'|j(�|g�}t|�}|jd
k(r|r|j+|��}n|jr|j}|j-�}|j.s t1|jt3|��}nt3|�}t'|�|
_|j5|
|�|j6t8j:t8j<fvr,d}|D]}|
j>jA|d�� d|
_!|
j>}|jAd
d�tE|
jF||j�tI|
jF|jJ�|
jM|
jF�|jO|
|�}|jQ|
|�|
jRduxr
d|vxsd|v}|rtU|
�|
}|r|��nP|jV|f|||||dd�|	��}tE|jJ|
|j�|j|�}|��|r���yy#tttf$r |jjd��Y���wxYw�w)zBReceives a Response. Returns a generator of Responses or Requests.rNF)�decode_contentz	Exceeded z redirects.)r7z//�:�)�fragment)�Content-LengthzContent-Type�Transfer-Encoding�Cookier]r^)�stream�timeout�verify�cert�proxies�allow_redirects),rHr�urlr\�copy�append�history�contentrr�RuntimeError�raw�read�len�
max_redirectsr�close�
startswith�joinrrN�_replace�geturl�netlocrr"�rebuild_method�status_coder�temporary_redirect�permanent_redirectrD�pop�bodyr�_cookiesr�cookies�prepare_cookies�rebuild_proxies�rebuild_auth�_body_positionr$�send)rFrG�reqr`rarbrcrd�yield_requests�adapter_kwargs�histrf�previous_fragment�prepared_request�parsed_rurl�parsed�purged_headers�headerrD�
rewindables                    r4�resolve_redirectsz&SessionRedirectMixin.resolve_redirects�s-�������&�&�t�,��$�S�W�W�-�6�6���"�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�4�8�8�L��*�3�3�T�\�\�B��,�,�-=�-F�-F�G��*�*�+;�W�E�G����.��5�
*�8�8��D�� �G�+�M�/B�g�/M�
�
��,�-�#�C���	� �t�y�y��	�!�#�!��#�$)�	�%�	��'�t�|�|�5E�t�x�x�P��.�.�t�4���
�O��)�*>��M�
4����
�
�U�
�3�
4�s1�A!M,�$L5�0KM,�3M,�50M)�%M,�(M)�)M,c���|j}|j}d|vr)|j|jj|�r|d=|jrt|�nd}|�|j
|�yy)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)rDrfrW�request�	trust_envr!�prepare_auth)rFr�r7rDrf�new_auths      r4r�z!SessionRedirectMixin.rebuild_authsw��
#�*�*���"�"���g�%�$�*@�*@���� � �#�+
�
��(�+/�.�.�>�#�&�d�����)�)�(�3� r<c�,�|j}t|j�j}t	|||j
�}d|vr|d=	t
||�\}}|jd�s|r|rt||�|d<|S#t$rd\}}Y�6wxYw)a�This 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-Authorization�NNrL)
rDrrfrNr#r�r�KeyErrorrqr)rFr�rdrDrN�new_proxies�username�passwords        r4rz$SessionRedirectMixin.rebuild_proxies.s���#�*�*���*�.�.�/�6�6��%�&6�����P�� �G�+��-�.�	,�!2�;�v�3F�!G��H�h�� � ��)�h�8�-<�X�x�-P�G�)�*�����	,�!+��H�h�	,�s�B�B�Bc��|j}|jtjk(r|dk7rd}|jtjk(r|dk7rd}|jtj
k(r|dk(rd}||_y)z�When being redirected we may want to change the method of the request
        based on certain specs or browser behavior.
        �HEAD�GET�POSTN)�methodrwr�	see_other�found�moved)rFr�r7r�s    r4rvz#SessionRedirectMixin.rebuild_methodMsx��"�(�(�����5�?�?�2�v��7G��F����5�;�;�.�6�V�3C��F����5�;�;�.�6�V�3C��F�"(��r<)FNTNNF)	�__name__�
__module__�__qualname__rHrWr�r�rrv�r<r4r>r>js7���(.�H���
���y�v4�(�>)r<r>c��eZdZdZgd�Zd�Zd�Zd�Zd�Z														dd�Z	d	�Z
d
�Zd�Zdd�Z
dd
�Zdd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Zy)�Sessiona�A 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]>
    )rDr}�authrd�hooks�paramsrbrc�adaptersr`r�roc�^�t�|_d|_i|_t	�|_i|_d|_d|_d|_	t|_d|_ti�|_t�|_|j#dt%��|j#dt%��y)NFTzhttps://zhttp://)rrDr�rdrr�r�r`rbrcrror�rr}rr��mountr�rFs r4�__init__zSession.__init__�s���'�(�����	�
���#�_��
�
�����������	�4������+�2�.���$�
��
��
�
�:�{�}�-��
�
�9�k�m�,r<c��|S�Nr�r�s r4�	__enter__zSession.__enter__�s���r<c�$�|j�yr�)rp)rF�argss  r4�__exit__zSession.__exit__�s���
�
�r<c���|jxsi}t|tj�st	|�}ttt
�|j�|�}|j}|jr#|s!|jst|j�}t�}|j|jj�|j|j|j |j"t%|j&|j&t(��t%|j*|j*�t%||j�|t-|j.|j.���
|S)a�Constructs 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�rf�files�data�jsonrDr�r�r}r�)r}r)r
�	CookieJarrrr
r�r�r!rfr�preparer��upperr�r�r�r5rDrr�r;r�)rFr�r}�merged_cookiesr��ps      r4�prepare_requestzSession.prepare_request�s���/�/�'�R���'�9�#6�#6�7�)�'�2�G�'��+�-�t�|�|�<�g�
��
�|�|���>�>�$�t�y�y�!�'�+�+�.�D����	�	�	��>�>�'�'�)�����-�-�������!�������:M��!�������=��t�T�Y�Y�/�"��g�m�m�T�Z�Z�8�	�
	
��r<Nc��t|j�||||xsi||xsi|||��
}|j|�}|xsi}|j|j||
||�}|	|
d�}|j|�|j|fi|��}|S)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 long 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�rfrDr�r�r�r�r�r}r�)rare)rr�r��merge_environment_settingsrfr*r�)rFr�rfr�r�rDr}r�r�rarerdr�r`rbrcr�r��prep�settings�send_kwargsrGs                      r4r�zSession.request�s���~��<�<�>���������<�R����
���#�#�C�(���-�R���2�2��H�H�g�v�v�t�
���.�
��	���8�$��t�y�y��-��-���r<c�N�|jdd�|jd|fi|��S)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
        reTr���
setdefaultr��rFrf�kwargss   r4r8zSession.getQs-��	���+�T�2��t�|�|�E�3�1�&�1�1r<c�N�|jdd�|jd|fi|��S)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
        reT�OPTIONSr�r�s   r4�optionszSession.options\s-��	���+�T�2��t�|�|�I�s�5�f�5�5r<c�N�|jdd�|jd|fi|��S)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
        reFr�r�r�s   r4�headzSession.headgs-��	���+�U�3��t�|�|�F�C�2�6�2�2r<c�0�|jd|f||d�|��S)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�)rFrfr�r�r�s     r4�postzSession.postrs#���t�|�|�F�C�H�d��H��H�Hr<c�.�|jd|fd|i|��S)auSends 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��rFrfr�r�s    r4�putzSession.puts!���t�|�|�E�3�<�T�<�V�<�<r<c�.�|jd|fd|i|��S)awSends 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    r4�patchz
Session.patch�s!���t�|�|�G�S�>�t�>�v�>�>r<c�*�|jd|fi|��S)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   r4�deletezSession.delete�s���t�|�|�H�c�4�V�4�4r<c�f�|jd|j�|jd|j�|jd|j�d|vr$t	||j
|j�|d<t|t�rtd��|jdd�}|jd�}|j}|j|j��}t�}|j |fi|��}t�|z
}	t#|	�	�|_t'd
||fi|��}|j(r<|j(D]-}
t+|j,|
j.|
j0��/t+|j,||j0�|r$|j2||fi|��}|D�
cgc]}
|
��}}
ng}|r)|j5d|�|j�}||_|s%	t7|j2||fddi|���|_|s|j<|Scc}
w#t:$rY� wxYw)
zISend a given PreparedRequest.

        :rtype: requests.Response
        r`rbrcrdz#You can only send PreparedRequests.reT)rf)�secondsr7rr�)r�r`rbrcr#rdr�r)r�
ValueErrorrzr8r��get_adapterrf�preferred_clockr�r�elapsedrrirr}r�rlr��insert�next�_next�
StopIterationrj)
rFr�r�rer`r��adapter�start�rr�rG�genris
             r4r�z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�� �!��
�G�L�L��+�F�+��"�#�e�+���g�.��	�
�*�e�Q�9�&�9��
�9�9��	�	��&�t�|�|�T�\�\�4�8�8�L�"�	�t�|�|�W�a�e�e�<��(�$�(�(��G�>�v�>�C�(+�,���t��G�,��G���N�N�1�a� ����
�A��A�I��
��*�D�*�*�1�g�U�d�U�f�U�����
�I�I����1-��$!�
��
�s�/	H�+$H$�$	H0�/H0c��|jr�|�|jd�nd}t||��}|j�D]\}}	|j	||	��|dus|�Dt
jjd�xs#t
jjd�xs|}t||j�}t||j�}t||j�}t||j�}||||d�S)z^
        Check the environment and merge it with some settings.

        :rtype: dict
        N�no_proxy)r�T�REQUESTS_CA_BUNDLE�CURL_CA_BUNDLE)rdr`rbrc)r�r8r r+r��os�environr5rdr`rbrc)
rFrfrdr`rbrcr��env_proxiesr0r1s
          r4r�z"Session.merge_environment_settings�s����>�>�29�2E�w�{�{�:�.�4�H�-�c�H�E�K�#�)�)�+���1��"�"�1�a�(�,�
��~����J�J�N�N�#7�8���z�z�~�~�&6�7���� �����6���v�t�{�{�3���v�t�{�{�3���T�4�9�9�-��"�f��PT�U�Ur<c���|jj�D]6\}}|j�j|j��s�4|cSt	d|����)z~
        Returns the appropriate connection adapter for the given URL.

        :rtype: requests.adapters.BaseAdapter
        z&No connection adapters were found for )r�r+�lowerrqr)rFrf�prefixr�s    r4r�zSession.get_adapter
sS�� $�}�}�2�2�4�O�F�G��y�y�{�%�%�f�l�l�n�5��� 5�
�D�S�G�L�M�Mr<c�b�|jj�D]}|j��y)z+Closes all adapters and as such the sessionN)r��valuesrp)rFr1s  r4rpz
Session.closes"�����%�%�'�A�
�G�G�I�(r<c���||j|<|jD�cgc]}t|�t|�ks�|��}}|D]*}|jj|�|j|<�,ycc}w)zwRegisters a connection adapter to a prefix.

        Adapters are sorted in descending order by prefix length.
        N)r�rnrz)rFr�r�r0�keys_to_mover3s      r4r�z
Session.mountsf��
!(��
�
�f��#'�=�=�I�=�a�C��F�S��[�4H��=��I��C�!%���!2�!2�3�!7�D�M�M�#�� ��Js
�A1�A1c	�Z�|jD�cic]}|t||d���}}|Scc}wr�)�	__attrs__�getattr)rF�attr�states   r4�__getstate__zSession.__getstate__*s3��=A�^�^�L�^�T��w�t�T�4�0�0�^��L����Ms�(c�N�|j�D]\}}t|||��yr�)r+�setattr)rFr�r��values    r4�__setstate__zSession.__setstate__.s"�� �;�;�=�K�D�%��D�$��&�)r<)NNNNNNNTNNNNNNr�r�)r�r�r��__doc__r�r�r�r�r�r�r8r�r�r�r�r�r�r�r�r�rpr�r�rr�r<r4r�r�ds����$
�I�;-�z��)�^�
����
�������
�
�#[�z	2�	6�	3�I�
=�
?�5�K�ZV�>N��
	8��'r<r�c��t�S)aZ
    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<r4�sessionr3s���9�r<)<rr��sys�time�collectionsr�datetimer�_internal_utilsrr�rr�r�compatr	r
rrr}r
rrr�
exceptionsrrrrr�rr�modelsrrrr�status_codesr�
structuresr�utilsrrrr r!r"r#r$r%r&�platform�perf_counterr�r5r;r>r�rr�r<r4�<module>rs����
�
��#��-�!�!�9�9�����0��� �+�����<�<�7���'�'�O��i�i�O�@K��<:E�C�w)�w)�tL'�"�L'�^r<

Youez - 2016 - github.com/yon3zu
LinuXploit