LITA Regional Institute: Proxy Web Servers and Authentication
San Antonio, TX February 22, 2001
Proxy Web Servers and Authentication > Local PC Setup > Proxy Auto-Configuration Files
Programming
- The FindProxyForURL function receives two parameters for each URL requested: "url" and "host"
- url
- The complete URL being requested.
- host
- The hostname extracted from the URL. This is the exact same host listed in the URL. The port number is not included (it can be extracted from the URL if needed).
- The FindProxyForURL function must return a string in one of three formats:
- DIRECT
- The request should go directly to the origin server.
- PROXY host:port
- The request should go to the specified proxy.
- SOCKS host:port
- The specified SOCKS server should be used.
- More than one method may be used; separate different methods by semicolons