2

we spent three days still could not solve a strange technical problem, so we need your help.

The pac (proxy-auto-config) file we write is working fine in all other browser, except IE(Internet Explorer).

the request url is

https://news.google.com.hk/nwshp?hl=zh-CN&tab=wn

if pac file is

function FindProxyForURL(url, host) {

    if(/news/i.test(url)) return "PROXY 127.0.0.1:8087";

    return  "DIRECT";
}

it is right, it is using proxy to visit the website.

however if the pac file change to

function FindProxyForURL(url, host) {

    if(/CN/i.test(url)) return "PROXY 127.0.0.1:8087";

    return  "DIRECT";

}

CN, is also in the url. but IE do not using proxy to visit the website, like we think.

However we test in other browser like Chrome, Safari, Firefox, they all run well , they all using proxy to visit the website.

It seems like in the IE, the parameter "url" in the function FindProxyForURL(url, host), is not full path of url, it just contain the host,but in other browser it is the full url.

We have taken 3 days on this problem, Do you have some idea to let the function in IE pac file to get the full url, or have a method to debug the pac file in IE browser.

We even cannot alert infomation in browser.

Our IE version is 10, Windows 8.

EvanChen
  • 21
  • 1
  • 4

2 Answers2

1

See http://support.microsoft.com/kb/271361

You need to set HKEY_CURRENT_USER\Software\Policies\Microsoft\Windows\CurrentVersion\Internet Settings\EnableAutoProxyResultCache to DWORD 0.

0x1mason
  • 757
  • 8
  • 20
  • I have created this key and nothing happen, proxy is still not working –  May 09 '14 at 14:59
  • 1
    This is the correct answer (I owned this area for WinINET); IE caches the proxy based on the first hit. You'll probably need to reboot after changing this key. – EricLaw Apr 20 '16 at 16:24
1

for future research, and anyone who stumbles upon this thread, this Microsoft blog, describes why this did not work, it is because of some recent changes in how IE 11 can use proxies.

http://blogs.msdn.com/b/ieinternals/archive/2013/10/11/web-proxy-configuration-and-ie11-changes.aspx

Jax7778
  • 11
  • 1
  • 1
    You should avoid just posting external links. Please edit your post and make the content stand-alone in case the external link runs dead... – Werner Feb 11 '15 at 19:36