home *** CD-ROM | disk | FTP | other *** search
/ ftp.mactech.com 2010 / ftp.mactech.com.tar / ftp.mactech.com / netprofessional / code / 03.01 / NetTips-ProxyConfig / HTTPonly.pac(list4).txt < prev    next >
Text File  |  2010-09-21  |  271b  |  13 lines

  1. function FindProxyForURL( url, host)
  2. {
  3.     if ( shExpMatch( url, "http:*" ) ||
  4.         shExpMatch( url, "https:*" ) )
  5.          // Use the proxy for HTTP or HTTPS connections
  6.         return "PROXY proxy1.yoursite.com:8000";
  7.  
  8.     else
  9.         // Use direct access for gopher, etc.
  10.         return "DIRECT";
  11. }
  12.  
  13.