HTTPS in PAC file

I am writing a .pac file for use with iOS5 without jailbreak, but I am having difficulty matching the url starting with "https" (for example: https://test.com ).

Here is my script:

function FindProxyForURL(url, host) {
  if (shExpMatch(url, "https://*")) return "PROXY 123.123.123.123";
  return 'DIRECT';
}

And if I matched "https://test.com", how can I return "https://123.123.123.123" to the URL?

+5
source share
2 answers

You cannot proxy the HTTPS protocol without violating end-to-end security, which is its only distinguishing feature. The reason your matches don't work is because your PAC file is ignored for HTTPS.

- HTTPS , , . , ( , , ), .

+1

:

if (shExpMatch(url, "https:**"))

.

0

All Articles