PySocks icon indicating copy to clipboard operation
PySocks copied to clipboard

Can't ignore/enforce SSL Cert verification.

Open encompass opened this issue 8 years ago • 0 comments

I have the following I am building:

opener = urllib2.build_opener(
            SocksiPyHandler(socks.PROXY_TYPE_SOCKS5, socks_hostname, socks_port, True, socks_username, socks_password))
    request = urllib2.Request(url)
    response = opener.open(request).read()

But how do I pass my:

context = ssl._create_unverified_context()

It seems to just ignore it when I pass it into ScoksiPyHandler.

Is there any solution for this?

encompass avatar Jan 25 '16 06:01 encompass