How can I make an HTTP request through a SOCKS/SOCKS5 proxy? It seems that HttpWebRequest
only supports an HTTP proxy, without support for SOCKS5.
Asked
Active
Viewed 7,317 times
3

sashoalm
- 75,001
- 122
- 434
- 781

Michael Davis
- 71
- 2
- 8
-
Does this answer your question? [Socks Proxy for HttpWebRequest](https://stackoverflow.com/questions/3855726/socks-proxy-for-httpwebrequest) – KUTlime Sep 20 '21 at 20:58
1 Answers
2
I think this post might be really helpfull to you. The anwser states why certain .NET classses are not capable of using a socks5 proxy directly and explains how to write client code using the WebClient
and HTTPWebRequest
classes.
use-webclient-with-socks-proxy
This one might be helpful as well since it shows how to use a third party .NET library offering the functionality to talk to socks5 proxies.

Community
- 1
- 1

MarkusAtCvlabDotDe
- 1,032
- 5
- 12