using Tor as Proxy

前端 未结 5 1986
再見小時候
再見小時候 2020-11-28 04:31

I\'m trying to use Tor-Server as a proxy in HttpWebRequest, my code looks like this:

HttpWebRequest request;
HttpWebResponse response;

request          


        
5条回答
  •  南方客
    南方客 (楼主)
    2020-11-28 05:11

    If you have privoxy installed and running you can do

    request.Proxy = new WebProxy("127.0.0.1:8118"); // default privoxy port
    

    Which will enable you to make requests using tor

提交回复
热议问题