How to use proxy with C# application

前端 未结 2 1627
余生分开走
余生分开走 2021-02-04 20:08

I am using Microsoft Visual Studio 2010 C# .net 4.0

I have a webbrowser element. What i want to do is navigating via Webbrowser element with using proxy. How can i do th

2条回答
  •  情歌与酒
    2021-02-04 20:23

    See this link. You can easily set proxies for web requests but the WebBrowser class shares settings with iexplore.exe ... If you want, you can adjust the proxy settings by programmatically changing the IE registry values and then change them back (see brendan's answer).

    How to set a proxy for Webbrowser Control without effecting the SYSTEM/IE proxy

提交回复
热议问题