Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Make an HTTP request through a SOCKS proxy

Tags:

c#

socks

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.

like image 718
Michael Davis Avatar asked Jul 27 '26 05:07

Michael Davis


1 Answers

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.

socks-proxy-for-httpwebrequest

like image 187
MarkusAtCvlabDotDe Avatar answered Jul 29 '26 19:07

MarkusAtCvlabDotDe