Your IP : 18.225.55.42


Current Path : /opt/hc_python/share/doc/pycurl/examples/quickstart/__pycache__/
Upload File :
Current File : //opt/hc_python/share/doc/pycurl/examples/quickstart/__pycache__/response_headers.cpython-38.pyc

U

hf1�@sddlZddlZzddlmZWn ek
r@ddlmZYnXiZdd�Ze�Ze�	�Z
e
�e
jd�e
�e
j
ej�e
�e
je�e
��e
��dZdekr�ed��Ze�de�Zer�e�d	�Zed
e�edkr�dZede�e��Zee�e��dS)
�N)�BytesIO)�StringIOcCsJ|�d�}d|krdS|�dd�\}}|��}|��}|��}|t|<dS)N�
iso-8859-1�:�)�decode�split�strip�lower�headers)Zheader_line�name�value�r�n/opt/hc_python/lib64/python3.8/site-packages/../../../share/doc/pycurl/examples/quickstart/response_headers.py�header_function
s
rzhttp://pycurl.iozcontent-typez
charset=(\S+)rzDecoding using %srzAssuming encoding is %s)Zpycurl�re�ior�ImportErrorrrr�bufferZCurl�cZsetopt�URLZ
WRITEFUNCTION�writeZHEADERFUNCTIONZperform�close�encodingr
�content_type�search�match�group�print�getvalue�bodyrrrrr�<module>s4


?>