windows-8 – 如何在Windows 8.1(IE11和Modern UI)上调试PAC(代
在较旧的系统(如 Windows 7 IE10)上,在PAC文件中调用“alert()”会导致显示对话框.但是,在Windows 8.1中,即使IE11似乎正在使用PAC,也不会显示任何对话框. 我目前的情况是IE11可以使用(SOCKS)代理(由PAC返回)就好了,但现代UI应用程序与Internet完全断开连接.似乎IE11和Modern UI对PAC设置的处理方式不同,但我找不到调试它的方法. 总之,我的问题是 >如何在Windows 8.1上使用IE11调试PAC? Microsoft对IE11如何处理本地PAC文件进行了更改.你可以阅读它们here或参见下面的一些快速信息. 另请注意,alert()语句不再适用于Windows 8.
[HKLMSOFTWAREPoliciesMicrosoftWindowsCurrentVersionInternet Settings] (DWORD)"EnableLegacyAutoProxyFeatures"=1
使用AUTOPROX的DEBUG PAC文件(Download Link)
C:temp>autoprox Version : 2.1.0.0 Written by pierrelc@microsoft.com Usage : AUTOPROX -s (calling DetectAutoProxyUrl and saving wpad.dat file in temporary file) Usage : AUTOPROX [-h] url [Path to autoproxy file] -h: calls InternetInitializeAutoProxyDll with helper functions implemented in AUTOPROX AUTOPROX url: calling DetectAutoProxyUrl and using WPAD.DAT logic to find the proxy for the url AUTOPROX url path: using the autoproxy file from the path to find proxy for the url Example: autoprox -s Example: autoprox http://www.microsoft.com Example: autoprox -h http://www.microsoft.com c:inetpubwwwrootwpad.dat Example: autoprox http://www.microsoft.com http://proxy/wpad.dat
C:temp>autoprox http://us.msn.com c:tempsample.pac The Winsock 2.2 dll was found okay url: http://us.msn.com autoproxy file path is : c:tempsample.pac Calling InternetInitializeAutoProxyDll with c:tempsample.pac Calling InternetGetProxyInfo with url http://us.msn.com and host us.msn.com Proxy returned for url http://us.msn.com is: PROXY myproxy:80;
C:temp>autoprox -h http://us.msn.com c:tempsample.pac The Winsock 2.2 dll was found okay Will call InternetInitializeAutoProxyDll with helper functions url: http://us.msn.com autoproxy file path is : c:tempsample.pac Calling InternetInitializeAutoProxyDll with c:tempsample.pac Calling InternetGetProxyInfo with url http://us.msn.com and host us.msn.com ResolveHostByName called with lpszHostName: us.msn.com ResolveHostByName returning lpszIPAddress: 65.55.206.229 Proxy returned for url http://us.msn.com is: PROXY myproxy:80;
(编辑:南京站长网) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |