.Net Internet Proxy

2019-07-21 06:31发布

How to declare a network proxy for all windows programs to use?

标签: c# .net proxy
3条回答
老娘就宠你
2楼-- · 2019-07-21 07:12

A quick search on Bing brought this post.

The guy there was able to do what you want using WMI.

查看更多
Bombasti
3楼-- · 2019-07-21 07:14

Open IE go to internet options, go to connections, lan settings ->proxy settings

:P Not really an answer, just my tech support days shining through.

查看更多
淡お忘
4楼-- · 2019-07-21 07:16

.NET framework WebRequest use Internet Options for current user context (accessible from control panel). As if it is set for IE, it will be used by .NET WebRequest.

But when WebRequest will run under account such as "NT AUTHORITY\NETWORK SERVICE", for example from ASP.NET application, there's no Internet Options set for this user. That way you have to play with registry.

For more, read article "Take the Burden Off Users with Automatic Configuration in .NET"

查看更多
登录 后发表回答