Linux worldls-302.fr.planethoster.net 4.18.0-553.8.1.lve.el7h.x86_64 #1 SMP Thu Jul 4 15:19:33 UTC 2024 x86_64
LiteSpeed
Server IP : 10.185.0.203 & Your IP : 216.73.217.14
Domains :
Cant Read [ /etc/named.conf ]
User : gerathty
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
usr /
lib /
python2.7 /
site-packages /
urllib3 /
util /
Delete
Unzip
Name
Size
Permission
Date
Action
__init__.py
854
B
-rw-r--r--
2015-12-14 22:06
__init__.pyc
1.23
KB
-rw-r--r--
2016-02-15 15:28
__init__.pyo
1.23
KB
-rw-r--r--
2016-02-15 15:28
connection.py
3.3
KB
-rw-r--r--
2015-12-14 22:06
connection.pyc
3.01
KB
-rw-r--r--
2016-02-15 15:28
connection.pyo
3.01
KB
-rw-r--r--
2016-02-15 15:28
request.py
2.08
KB
-rw-r--r--
2015-12-14 22:06
request.pyc
2.15
KB
-rw-r--r--
2016-02-15 15:28
request.pyo
2.15
KB
-rw-r--r--
2016-02-15 15:28
response.py
2.12
KB
-rw-r--r--
2015-12-14 22:06
response.pyc
2.14
KB
-rw-r--r--
2016-02-15 15:28
response.pyo
2.14
KB
-rw-r--r--
2016-02-15 15:28
retry.py
9.75
KB
-rw-r--r--
2015-12-14 22:06
retry.pyc
9.57
KB
-rw-r--r--
2016-02-15 15:28
retry.pyo
9.57
KB
-rw-r--r--
2016-02-15 15:28
ssl_.py
11.13
KB
-rw-r--r--
2015-12-14 22:06
ssl_.pyc
9.74
KB
-rw-r--r--
2016-02-15 15:28
ssl_.pyo
9.74
KB
-rw-r--r--
2016-02-15 15:28
timeout.py
9.37
KB
-rw-r--r--
2015-12-14 22:06
timeout.pyc
9.38
KB
-rw-r--r--
2016-02-15 15:28
timeout.pyo
9.38
KB
-rw-r--r--
2016-02-15 15:28
url.py
5.74
KB
-rw-r--r--
2015-12-14 22:06
url.pyc
5.81
KB
-rw-r--r--
2016-02-15 15:28
url.pyo
5.81
KB
-rw-r--r--
2016-02-15 15:28
Save
Rename
from __future__ import absolute_import from ..packages.six.moves import http_client as httplib from ..exceptions import HeaderParsingError def is_fp_closed(obj): """ Checks whether a given file-like object is closed. :param obj: The file-like object to check. """ try: # Check via the official file-like-object way. return obj.closed except AttributeError: pass try: # Check if the object is a container for another file-like object that # gets released on exhaustion (e.g. HTTPResponse). return obj.fp is None except AttributeError: pass raise ValueError("Unable to determine whether fp is closed.") def assert_header_parsing(headers): """ Asserts whether all headers have been successfully parsed. Extracts encountered errors from the result of parsing headers. Only works on Python 3. :param headers: Headers to verify. :type headers: `httplib.HTTPMessage`. :raises urllib3.exceptions.HeaderParsingError: If parsing errors are found. """ # This will fail silently if we pass in the wrong kind of parameter. # To make debugging easier add an explicit check. if not isinstance(headers, httplib.HTTPMessage): raise TypeError('expected httplib.Message, got {0}.'.format( type(headers))) defects = getattr(headers, 'defects', None) get_payload = getattr(headers, 'get_payload', None) unparsed_data = None if get_payload: # Platform-specific: Python 3. unparsed_data = get_payload() if defects or unparsed_data: raise HeaderParsingError(defects=defects, unparsed_data=unparsed_data) def is_response_to_head(response): """ Checks, wether a the request of a response has been a HEAD-request. Handles the quirks of AppEngine. :param conn: :type conn: :class:`httplib.HTTPResponse` """ # FIXME: Can we do this somehow without accessing private httplib _method? method = response._method if isinstance(method, int): # Platform-specific: Appengine return method == 3 return method.upper() == 'HEAD'