+ Post New Thread
Results 1 to 3 of 3
Netbooks, PDA and Phones Thread, Weird proxy.pac problem in Technical; Hi All, I've been trying to setup a proxy.pac file as a means of enabling proxy exceptions on ipads - ...
  1. #1
    gsk
    gsk is offline

    Join Date
    Apr 2009
    Posts
    163
    Thank Post
    37
    Thanked 7 Times in 7 Posts
    Rep Power
    0

    Weird proxy.pac problem

    Hi All,

    I've been trying to setup a proxy.pac file as a means of enabling proxy exceptions on ipads - that will be it's sole use. I've read a few great threads on here about it and have used several scripts including the one FNGM posted. The weird part is that they all make the ipad able to see 'google.co.uk' when i enter the pac file url in the network settings of the ipad. But it won't let me access the local servers I've put in as exceptions. I have put my code below:

    Code:
    function FindProxyForURL(url, host)
    
    {
    
    //Declare proxy strings as variables
    
    var capitaproxy = "PROXY webshield.embc.uk.com:80";
    
    // IP not to use proxy
    
    if (shExpMatch(url, "*intranet*")) { return "DIRECT"; }
    if (shExpMatch(url, "*cctv*")) { return "DIRECT"; }
    if (shExpMatch(url, "*webserver*")) { return "DIRECT"; }
    if (shExpMatch(url, "*127.0.0.1*")) { return "DIRECT"; }
    if (isPlainHostName(host)) { return "DIRECT"; }
    
    // URLS not to use proxy server
    
    if (shExpMatch(url, "*mail.inthehive.net*")) { return "DIRECT"; }
    
    
    // Slect Proxy Server
    
    if (isInNet(myIpAddress(), "10.56.84.0", "255.255.252.0")) { return capitaproxy; }
    if (isInNet(myIpAddress(), "10.58.188.0", "255.255.252.0")) { return capitaproxy; }
    if (isInNet(myIpAddress(), "10.58.224.0", "255.255.252.0")) { return capitaproxy; }
    
    else
    
    return "DIRECT";
    
    }

  2. #2

    jinnantonnixx's Avatar
    Join Date
    Mar 2011
    Location
    In the Calamatorium.
    Posts
    1,952
    Thank Post
    109
    Thanked 482 Times in 331 Posts
    Blog Entries
    2
    Rep Power
    281
    I use the 'pactester' tool to troubleshoot pac files:

    pacparser - A library to make your web software pac (proxy auto-config) files intelligent. Comes with much useful pactester tool now. - Google Project Hosting

    An example of its use:
    pactester -p "\\myserver\someshare\mypacfilel.pac" -u "http://www.google.co.uk/" -h "google.co.uk"

  3. #3
    gsk
    gsk is offline

    Join Date
    Apr 2009
    Posts
    163
    Thank Post
    37
    Thanked 7 Times in 7 Posts
    Rep Power
    0
    Thanks, I'll have a look at using that and see what comes up!

SHARE:
+ Post New Thread

Similar Threads

  1. Proxy.Pac Config File Problems
    By FN-GM in forum Coding
    Replies: 3
    Last Post: 9th December 2010, 10:12 AM
  2. proxy .pac file
    By sted in forum Windows
    Replies: 12
    Last Post: 24th September 2009, 07:50 PM
  3. Stupid proxy pac
    By Oops_my_bad in forum Wireless Networks
    Replies: 10
    Last Post: 23rd March 2009, 09:59 AM
  4. Weird smartcache 2 problem.
    By K.C.Leblanc in forum Network and Classroom Management
    Replies: 1
    Last Post: 18th March 2008, 08:40 AM
  5. Office 2003 Proxy Authentication Problem
    By Stefletch in forum Office Software
    Replies: 8
    Last Post: 10th February 2007, 10:00 AM

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •