4 ms·
how does the iphone know to route requests for the private network to the host os?
by joevandyk 12y ago
how does the iphone know to route requests for the private network to the host os?
- jasomill 12y agoHTTP Proxy in iOS Settings offers three options: Off: proxies no HTTP requests. Manual: proxies all HTTP requests through a proxy server at the specified host and port. Auto: uses JavaScript code hosted on a Web server at a specified (unproxied) URL to determine how HTTP requests get proxied. Assuming your proxy server is at host.example.com:8080, specifying a URL pointing to a file containing function FindProxyForURL(url, host) { if (shExpMatch(host, "*.vm.example.com")) { return "PROXY host.example.com:8080"; } else { return "DIRECT"; } } should proxy only HTTP requests whose URLs point to hosts in the .vm.example.com subdomain through your proxy server. Disclaimer: I haven't tested any of this, and everything I know about proxy auto-configuration comes from skimming the Wikipedia page[1] just now. [1] http://en.wikipedia.org/wiki/Proxy_auto-config http://en.wikipedia.org/wiki/Proxy_auto-config