【HTTP之Proxy】
1、
【vs Gateway】
1、Proxy vs Gateway
Strictly speaking, proxies connect two or more applications that speak the same pro- tocol, while gateways hook up two or more parties that speak different protocols.
2、Proxy auto-configuration (PAC)
You provide a URI to a JavaScript proxy auto-configuration (PAC) file; the client fetches the JavaScript file and runs it to decide if it should use a proxy and, if so, which proxy server to use.