PySocks
PySocks copied to clipboard
Socket error: 0x5b: Request rejected or failed
Hi. How can I further debug the above? Thx
Same error.
s = socks.socksocket()
s.set_proxy(socks.SOCKS4, proxy, port)
s.connect((host, 80))
s.send(request)
Seems that PySocks doesnt work even with documented examples.
When I remove line with set_proxy, script works fine.
Occurred when using the SOCKS4 proxy.
Using python-socks instead of pysocks can fix this issue.