净互联网代理 [英] .Net Internet Proxy
问题描述
如何定义一个网络代理的所有Windows程序使用?
How to declare a network proxy for all windows programs to use?
推荐答案
WebRequest的使用Internet选项当前用户的上下文(可从控制面板).NET框架。仿佛它设置为IE浏览器,它会使用.NET的WebRequest。
.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.
但是,当将WebRequest的帐户下运行如NT AUTHORITY \ NETWORK SERVICE,例如从ASP.NET应用程序,有没有Internet选项为该用户设置。这样,你有注册表玩。
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.
有关详情,请阅读文章把包袱用户自动配置研究。 NET
For more, read article "Take the Burden Off Users with Automatic Configuration in .NET"
这篇关于净互联网代理的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!