Can Resty Use SOCKS5 Proxy? Need Help Setting It Up!

9 Replies, 1936 Views

Hmm, I’ve been looking into this too. From what I’ve seen, resty use socks5 proxy isn’t directly possible, but you can use a library like `requests` in Python with a socks5 proxy and then integrate it with resty.

It’s a bit of a workaround, but it’s doable. Here’s a snippet:
```python
import requests
proxies = {'http': 'socks5://127.0.0.1:1080', 'https': 'socks5://127.0.0.1:1080'}
response = requests.get('http://example.com', proxies=proxies)
```
Then you can pass the response to resty. Hope that helps!

Messages In This Thread



Users browsing this thread: 1 Guest(s)