Requests: Not supported proxy scheme socks5

Created on 1 Aug 2014  ·  3Comments  ·  Source: psf/requests

I see https://github.com/kennethreitz/requests/pull/478 is closed, but why I can not use socks5 proxy?

define as:
PROXIES = { "http": "socks5://127.0.0.1:7070", "https": "socks5://127.0.0.1:7070", }

I use above proxy , and requests raise error Not supported proxy scheme socks5

Most helpful comment

urllib3 is an implementation detail.

If the issue is not fixed; it should not be closed unless the answer is that requests will never support SOCKS5 proxies.

All 3 comments

The error is perfectly clear. We do not support SOCKS5 proxies at this time. If you'd read #478 more closely you'd have seen this comment I made:

We currently do not have SOCKS proxy support, we're waiting for that code to be included in urllib3. There are plans afoot for this, but no definitive schedule at this time.

This remains true.

urllib3 is an implementation detail.

If the issue is not fixed; it should not be closed unless the answer is that requests will never support SOCKS5 proxies.

The fact that urllib3 is an implementation detail is relevant for our features. For features we don't have, implementation is critical. For example, httplib is an implementation detail but it's also _why_ we don't have Twisted support.

I was not blaming urllib3, I was providing a path to get this feature.

Was this page helpful?
0 / 5 - 0 ratings