Linux server.edchosting.com 4.18.0-553.79.1.lve.el7h.x86_64 #1 SMP Wed Oct 15 16:34:46 UTC 2025 x86_64
LiteSpeed
Server IP : 75.98.162.185 & Your IP : 216.73.216.163
Domains :
Cant Read [ /etc/named.conf ]
User : goons4good
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
lib /
python2.7 /
site-packages /
urllib3 /
util /
Delete
Unzip
Name
Size
Permission
Date
Action
__init__.py
486
B
-rw-r--r--
2014-08-06 14:38
__init__.pyc
787
B
-rw-r--r--
2019-08-08 22:16
__init__.pyo
787
B
-rw-r--r--
2019-08-08 22:16
connection.py
3.22
KB
-rw-r--r--
2015-02-25 18:18
connection.pyc
2.87
KB
-rw-r--r--
2019-08-08 22:16
connection.pyo
2.87
KB
-rw-r--r--
2019-08-08 22:16
request.py
2.04
KB
-rw-r--r--
2014-08-06 14:38
request.pyc
2.09
KB
-rw-r--r--
2019-08-08 22:16
request.pyo
2.09
KB
-rw-r--r--
2019-08-08 22:16
response.py
566
B
-rw-r--r--
2014-09-13 14:18
response.pyc
632
B
-rw-r--r--
2019-08-08 22:16
response.pyo
632
B
-rw-r--r--
2019-08-08 22:16
retry.py
10.18
KB
-rw-r--r--
2019-08-08 22:16
retry.pyc
9.86
KB
-rw-r--r--
2019-08-08 22:16
retry.pyo
9.86
KB
-rw-r--r--
2019-08-08 22:16
ssl_.py
8.63
KB
-rw-r--r--
2015-02-25 18:18
ssl_.pyc
7.98
KB
-rw-r--r--
2019-08-08 22:16
ssl_.pyo
7.98
KB
-rw-r--r--
2019-08-08 22:16
timeout.py
9.32
KB
-rw-r--r--
2014-08-06 14:38
timeout.pyc
9.32
KB
-rw-r--r--
2019-08-08 22:16
timeout.pyo
9.32
KB
-rw-r--r--
2019-08-08 22:16
url.py
5.92
KB
-rw-r--r--
2019-08-08 22:16
url.pyc
6.05
KB
-rw-r--r--
2019-08-08 22:16
url.pyo
6.05
KB
-rw-r--r--
2019-08-08 22:16
Save
Rename
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