Current Path: > > opt > alt > python27 > lib > > python2.7 > site-packages > pip > _vendor > > urllib3 > > contrib
Operation : Linux premium131.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 Software : Apache Server IP : 162.0.232.56 | Your IP: 216.73.216.111 Domains : 1034 Domain(s) Permission : [ 0755 ]
Name | Type | Size | Last Modified | Actions |
---|---|---|---|---|
_securetransport | Directory | - | - | |
__init__.py | File | 0 bytes | November 13 2023 21:11:11. | |
__init__.pyc | File | 234 bytes | November 13 2023 21:11:11. | |
_appengine_environ.py | File | 957 bytes | November 13 2023 21:11:11. | |
_appengine_environ.pyc | File | 2323 bytes | November 13 2023 21:11:11. | |
appengine.py | File | 11034 bytes | November 13 2023 21:11:11. | |
appengine.pyc | File | 10290 bytes | November 13 2023 21:11:11. | |
ntlmpool.py | File | 4160 bytes | November 13 2023 21:11:11. | |
ntlmpool.pyc | File | 4317 bytes | November 13 2023 21:11:11. | |
pyopenssl.py | File | 16582 bytes | November 13 2023 21:11:11. | |
pyopenssl.pyc | File | 21631 bytes | November 13 2023 21:11:11. | |
securetransport.py | File | 32401 bytes | November 13 2023 21:11:11. | |
securetransport.pyc | File | 27662 bytes | November 13 2023 21:11:11. | |
socks.py | File | 7036 bytes | November 13 2023 21:11:11. | |
socks.pyc | File | 7174 bytes | November 13 2023 21:11:11. |
� �Rec @@ s� d Z d d l m Z y d d l Z Wn@ e k rh d d l Z d d l m Z e j d e � � n Xd d l m Z m Z d d l m Z m Z d d l m Z m Z d d l m Z m Z d d l m Z d d l m Z y d d l Z Wn e k r d Z n Xd e f d � � YZ d e e f d � � YZ d e f d � � YZ d e f d � � YZ d e f d � � YZ d S( s_ This module contains provisional support for SOCKS proxies from within urllib3. This module supports SOCKS4, SOCKS4A (an extension of SOCKS4), and SOCKS5. To enable its functionality, either install PySocks or install this module with the ``socks`` extra. The SOCKS implementation supports the full range of urllib3 features. It also supports the following SOCKS features: - SOCKS4A (``proxy_url='socks4a://...``) - SOCKS4 (``proxy_url='socks4://...``) - SOCKS5 with remote DNS (``proxy_url='socks5h://...``) - SOCKS5 with local DNS (``proxy_url='socks5://...``) - Usernames and passwords for the SOCKS proxy .. note:: It is recommended to use ``socks5h://`` or ``socks4a://`` schemes in your ``proxy_url`` to ensure that DNS resolution is done from the remote server instead of client-side when connecting to a domain name. SOCKS4 supports IPv4 and domain names with the SOCKS4A extension. SOCKS5 supports IPv4, IPv6, and domain names. When connecting to a SOCKS4 proxy the ``username`` portion of the ``proxy_url`` will be sent as the ``userid`` section of the SOCKS request:: proxy_url="socks4a://<userid>@proxy-host" When connecting to a SOCKS5 proxy the ``username`` and ``password`` portion of the ``proxy_url`` will be sent as the username/password to authenticate with the proxy:: proxy_url="socks5h://<username>:<password>@proxy-host" i ( t absolute_importNi ( t DependencyWarnings� SOCKS support in urllib3 requires the installation of optional dependencies: specifically, PySocks. For more information, see https://urllib3.readthedocs.io/en/latest/contrib.html#socks-proxies( t errort timeout( t HTTPConnectiont HTTPSConnection( t HTTPConnectionPoolt HTTPSConnectionPool( t ConnectTimeoutErrort NewConnectionError( t PoolManager( t parse_urlt SOCKSConnectionc B@ s e Z d Z d � Z d � Z RS( sG A plain-text HTTP connection that connects via a SOCKS proxy. c O@ s/ | j d � | _ t t | � j | | � d S( Nt _socks_options( t popR t superR t __init__( t selft argst kwargs( ( s� /builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_vendor/urllib3/contrib/socks.pyR J s c C@ s� i } | j r | j | d <n | j r8 | j | d <n yy t j | j | j f d | j d d | j d d | j d d | j d d | j d d | j d d | j | �} Wn� t k r� t | d | j | j f � � n� t j k rd} | j rN| j } t | t � r8t | d | j | j f � � qat | d | � � q�t | d | � � n&