GRAYBYTE WORDPRESS FILE MANAGER1194

Server IP : 198.54.121.189 / Your IP : 216.73.216.112
System : Linux premium69.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64
PHP Version : 7.4.33
Disable Function : NONE
cURL : ON | WGET : ON | Sudo : OFF | Pkexec : OFF
Directory : /opt/alt/python37/lib/python3.7/site-packages/raven/utils/
Upload Files :
Current_dir [ Not Writeable ] Document_root [ Writeable ]

Command :


Current File : /opt/alt/python37/lib/python3.7/site-packages/raven/utils//http.py
"""
raven.utils.http
~~~~~~~~~~~~~~~~

:copyright: (c) 2010-2012 by the Sentry Team, see AUTHORS for more details.
:license: BSD, see LICENSE for more details.
"""
from __future__ import absolute_import

import socket
import ssl
import sys

from raven.conf import defaults
from raven.utils.compat import urllib2, httplib
from raven.utils.ssl_match_hostname import match_hostname


def urlopen(url, data=None, timeout=defaults.TIMEOUT, ca_certs=None,
            verify_ssl=False, assert_hostname=None):

    class ValidHTTPSConnection(httplib.HTTPConnection):
        default_port = httplib.HTTPS_PORT

        def __init__(self, *args, **kwargs):
            httplib.HTTPConnection.__init__(self, *args, **kwargs)

        def connect(self):
            sock = socket.create_connection(
                address=(self.host, self.port),
                timeout=self.timeout,
            )
            if self._tunnel_host:
                self.sock = sock
                self._tunnel()

            self.sock = ssl.wrap_socket(
                sock, ca_certs=ca_certs, cert_reqs=ssl.CERT_REQUIRED)

            if assert_hostname is not None:
                match_hostname(self.sock.getpeercert(),
                               self.assert_hostname or self.host)

    class ValidHTTPSHandler(urllib2.HTTPSHandler):
        def https_open(self, req):
            return self.do_open(ValidHTTPSConnection, req)

    if verify_ssl:
        handlers = [ValidHTTPSHandler]
    else:
        try:
            handlers = [urllib2.HTTPSHandler(
                context=ssl._create_unverified_context())]
        except AttributeError:
            handlers = []

    opener = urllib2.build_opener(*handlers)

    if sys.version_info < (2, 6):
        default_timeout = socket.getdefaulttimeout()
        socket.setdefaulttimeout(timeout)
        try:
            return opener.open(url, data)
        finally:
            socket.setdefaulttimeout(default_timeout)
    return opener.open(url, data, timeout)

[ Back ]
Name
Size
Last Modified
Owner / Group
Permissions
Options
..
--
March 03 2024 23:10:23
root / linksafe
0755
__pycache__
--
March 03 2024 23:10:23
root / linksafe
0755
serializer
--
March 03 2024 23:10:23
root / linksafe
0755
__init__.py
4.709 KB
October 29 2017 17:41:19
root / linksafe
0644
compat.py
5.543 KB
October 29 2017 17:41:19
root / linksafe
0644
conf.py
2.225 KB
October 29 2017 17:41:19
root / linksafe
0644
encoding.py
3.226 KB
October 29 2017 17:41:19
root / linksafe
0644
http.py
1.953 KB
October 29 2017 17:41:19
root / linksafe
0644
imports.py
0.395 KB
October 29 2017 17:41:19
root / linksafe
0644
json.py
2.544 KB
October 29 2017 17:41:19
root / linksafe
0644
ssl_match_hostname.py
3.514 KB
October 29 2017 17:41:19
root / linksafe
0644
stacks.py
9.806 KB
October 29 2017 17:41:19
root / linksafe
0644
testutils.py
0.681 KB
October 29 2017 17:41:19
root / linksafe
0644
transaction.py
1.063 KB
October 29 2017 17:41:19
root / linksafe
0644
urlparse.py
0.465 KB
October 29 2017 17:41:19
root / linksafe
0644
wsgi.py
3.644 KB
October 29 2017 17:41:19
root / linksafe
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2025
CONTACT ME
Static GIF