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.216.32
Domains :
Cant Read [ /etc/named.conf ]
User : gerathty
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
lib /
python2.7 /
site-packages /
requests /
Delete
Unzip
Name
Size
Permission
Date
Action
packages
[ DIR ]
drwxr-xr-x
2017-04-04 16:39
__init__.py
1.96
KB
-rw-r--r--
2015-12-21 15:53
__init__.pyc
2.58
KB
-rw-r--r--
2016-02-15 15:32
__init__.pyo
2.58
KB
-rw-r--r--
2016-02-15 15:32
adapters.py
17.08
KB
-rw-r--r--
2015-12-18 14:37
adapters.pyc
15.66
KB
-rw-r--r--
2016-02-15 15:32
adapters.pyo
15.66
KB
-rw-r--r--
2016-02-15 15:32
api.py
5.29
KB
-rw-r--r--
2015-12-18 14:37
api.pyc
6
KB
-rw-r--r--
2016-02-15 15:32
api.pyo
6
KB
-rw-r--r--
2016-02-15 15:32
auth.py
7.37
KB
-rw-r--r--
2015-12-18 14:37
auth.pyc
7.76
KB
-rw-r--r--
2016-02-15 15:32
auth.pyo
7.76
KB
-rw-r--r--
2016-02-15 15:32
certs.py
649
B
-rw-r--r--
2016-02-15 15:32
certs.pyc
897
B
-rw-r--r--
2016-02-15 15:32
certs.pyo
897
B
-rw-r--r--
2016-02-15 15:32
compat.py
1.51
KB
-rw-r--r--
2016-02-15 15:32
compat.pyc
1.65
KB
-rw-r--r--
2016-02-15 15:32
compat.pyo
1.65
KB
-rw-r--r--
2016-02-15 15:32
cookies.py
16.98
KB
-rw-r--r--
2015-12-18 14:37
cookies.pyc
20.29
KB
-rw-r--r--
2016-02-15 15:32
cookies.pyo
20.29
KB
-rw-r--r--
2016-02-15 15:32
exceptions.py
2.71
KB
-rw-r--r--
2015-12-18 14:37
exceptions.pyc
5.71
KB
-rw-r--r--
2016-02-15 15:32
exceptions.pyo
5.71
KB
-rw-r--r--
2016-02-15 15:32
hooks.py
767
B
-rw-r--r--
2015-12-18 14:37
hooks.pyc
1.16
KB
-rw-r--r--
2016-02-15 15:32
hooks.pyo
1.16
KB
-rw-r--r--
2016-02-15 15:32
models.py
28.59
KB
-rw-r--r--
2015-12-18 14:37
models.pyc
24.94
KB
-rw-r--r--
2016-02-15 15:32
models.pyo
24.94
KB
-rw-r--r--
2016-02-15 15:32
sessions.py
23.97
KB
-rw-r--r--
2015-12-18 14:37
sessions.pyc
19.31
KB
-rw-r--r--
2016-02-15 15:32
sessions.pyo
19.31
KB
-rw-r--r--
2016-02-15 15:32
status_codes.py
3.2
KB
-rw-r--r--
2015-12-18 14:37
status_codes.pyc
4.46
KB
-rw-r--r--
2016-02-15 15:32
status_codes.pyo
4.46
KB
-rw-r--r--
2016-02-15 15:32
structures.py
2.91
KB
-rw-r--r--
2015-12-18 14:37
structures.pyc
5.02
KB
-rw-r--r--
2016-02-15 15:32
structures.pyo
5.02
KB
-rw-r--r--
2016-02-15 15:32
utils.py
21.33
KB
-rw-r--r--
2015-12-21 15:52
utils.pyc
20.68
KB
-rw-r--r--
2016-02-15 15:32
utils.pyo
20.68
KB
-rw-r--r--
2016-02-15 15:32
Save
Rename
# -*- coding: utf-8 -*- """ requests.api ~~~~~~~~~~~~ This module implements the Requests API. :copyright: (c) 2012 by Kenneth Reitz. :license: Apache2, see LICENSE for more details. """ from . import sessions def request(method, url, **kwargs): """Constructs and sends a :class:`Request <Request>`. :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, bytes, or file-like object to send in the body of the :class:`Request`. :param json: (optional) json data 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 ``'name': file-like-objects`` (or ``{'name': ('filename', fileobj)}``) for multipart encoding upload. :param auth: (optional) Auth tuple 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) Boolean. Set to True if POST/PUT/DELETE redirect following is allowed. :type allow_redirects: bool :param proxies: (optional) Dictionary mapping protocol to the URL of the proxy. :param verify: (optional) whether the SSL cert will be verified. A CA_BUNDLE path can also be provided. Defaults to ``True``. :param stream: (optional) if ``False``, the response content will be immediately downloaded. :param cert: (optional) if String, path to ssl client cert file (.pem). If Tuple, ('cert', 'key') pair. :return: :class:`Response <Response>` object :rtype: requests.Response Usage:: >>> import requests >>> req = requests.request('GET', 'http://httpbin.org/get') <Response [200]> """ # By using the 'with' statement we are sure the session is closed, thus we # avoid leaving sockets open which can trigger a ResourceWarning in some # cases, and look like a memory leak in others. with sessions.Session() as session: return session.request(method=method, url=url, **kwargs) def get(url, params=None, **kwargs): """Sends a GET request. :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 \*\*kwargs: Optional arguments that ``request`` takes. :return: :class:`Response <Response>` object :rtype: requests.Response """ kwargs.setdefault('allow_redirects', True) return request('get', url, params=params, **kwargs) def options(url, **kwargs): """Sends a OPTIONS request. :param url: URL for the new :class:`Request` object. :param \*\*kwargs: Optional arguments that ``request`` takes. :return: :class:`Response <Response>` object :rtype: requests.Response """ kwargs.setdefault('allow_redirects', True) return request('options', url, **kwargs) def head(url, **kwargs): """Sends a HEAD request. :param url: URL for the new :class:`Request` object. :param \*\*kwargs: Optional arguments that ``request`` takes. :return: :class:`Response <Response>` object :rtype: requests.Response """ kwargs.setdefault('allow_redirects', False) return request('head', url, **kwargs) def post(url, data=None, json=None, **kwargs): """Sends a POST request. :param url: URL for the new :class:`Request` object. :param data: (optional) Dictionary, bytes, or file-like object to send in the body of the :class:`Request`. :param json: (optional) json data to send in the body of the :class:`Request`. :param \*\*kwargs: Optional arguments that ``request`` takes. :return: :class:`Response <Response>` object :rtype: requests.Response """ return request('post', url, data=data, json=json, **kwargs) def put(url, data=None, **kwargs): """Sends a PUT request. :param url: URL for the new :class:`Request` object. :param data: (optional) Dictionary, bytes, or file-like object to send in the body of the :class:`Request`. :param \*\*kwargs: Optional arguments that ``request`` takes. :return: :class:`Response <Response>` object :rtype: requests.Response """ return request('put', url, data=data, **kwargs) def patch(url, data=None, **kwargs): """Sends a PATCH request. :param url: URL for the new :class:`Request` object. :param data: (optional) Dictionary, bytes, or file-like object to send in the body of the :class:`Request`. :param \*\*kwargs: Optional arguments that ``request`` takes. :return: :class:`Response <Response>` object :rtype: requests.Response """ return request('patch', url, data=data, **kwargs) def delete(url, **kwargs): """Sends a DELETE request. :param url: URL for the new :class:`Request` object. :param \*\*kwargs: Optional arguments that ``request`` takes. :return: :class:`Response <Response>` object :rtype: requests.Response """ return request('delete', url, **kwargs)