Window client application 使用IE的http代理配置访问外网

Window client application 使用IE的http代理配置访问外网


IE的proxy配置有3种:
1. 指定proxy server的ip和port
2. Automatically detect settings: WPAD
3. Use automatic configuration url: 指定PAC文件url


Firefox/Opera/Chrome都是使用IE的proxy配置.我们通过WinHttp DLL中的api可以拿到这个配置对应的proxy server和port.
Mac上可以使用系统设置里面的proxy setting,  CFProxySupport API.



WPAD是Web Proxy Auto Discovery的缩写,意思是Web代理服务器自动发现(通过dhcp/dns)
http://en.wikipedia.org/wiki/Web_Proxy_Autodiscovery_Protocol


How does Windows actually detect LAN (proxy) settings when using Automatic Configuration:
http://stackoverflow.com/questions/191023/how-does-windows-actually-detect-lan-proxy-settings-when-using-automatic-confi


Detect Windows (IE) proxy settings changes: 
http://stackoverflow.com/questions/6192563/detect-windows-ie-proxy-settings-changes




Netsh.exe and ProxyCfg.exe Proxy Configuration Tools:
http://msdn.microsoft.com/en-us/library/aa384069%28v=VS.85%29.aspx




Using PAC(Proxy auto-config) files proxy:
http://www.codeproject.com/Articles/12168/Using-PAC-files-proxy




http://msdn.mic
  • 0
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值