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?
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 , , . , ( , , ), .
:
if (shExpMatch(url, "https:**"))
.