1. CrackBerry Question's Avatar
    Hi guys!

    I have to use a proxy configuration (pac-file) to allow communication for the bb world and browser on the work space through our proxy and communication for mails (IBM Lotus Notes Traveler) directly.

    The pac-file looks like this:

    function FindProxyForURL(url,host)

    {

    if (localHostOrDomainIs(host, "traveler.domain.de")
    return "DIRECT";

    else return "PROXY proxy.domain.int:2345";

    }

    The file is provided within Enterprise connectivity profile to our users.
    However it is not working.
    It seems like the bb10 devics are not using the configuration and i don't know why or how i can check things.
    Is the script wrong?

    The pac-file is provided through the main page of Microsoft ISS on the BES12 server.
    The PAC-URL within the proxy profil looks like this: http://2.3.4.5/proxy.pac
    Maybe that is the problem?

    Thanks in advance!
    Ronny



    PS: IPs, URLs and Links are just examples.
    09-17-15 06:08 AM
  2. MadScientistOo's Avatar
    Hello everybody,

    has no one an idea or should it work normally just as i've written?
    I am very grateful for any feedback.

    Best regards
    Ronny
    10-04-15 11:42 PM
  3. KermEd's Avatar
    Well two things. Assuming a pac file is based on javascript, it's missing a ), it should have as many opening tags as closing tags.

    The other is there are very very few people who do anything with BES on here. Some, but very few. Your best bet might be to hit the support forums on the BlackBerry site.

    Something like this should be safer from a code perspective:
    function FindProxyForURL(url,host)
    {
    if (localHostOrDomainIs(host, "traveler.domain.de"))
    {
    return "DIRECT";
    }
    else
    {
    return "PROXY proxy.domain.int:2345";
    }
    }

    Whenever working in a cross platform - especially JS formatted blob. I recommend giving full declarations. It increases compatibility with old systems. But in the case above what I saw missing was the second ) at the end of the if statement...

    Posted to CB via my Passport | Lloyd Summers | FileArchiveHaven
    MadScientistOo likes this.
    10-05-15 01:20 AM
  4. MadScientistOo's Avatar
    I didn't get any answers from BlackBerry Support forum so far, but your answer helped me solving my issue with the code.
    Thank you so much!
    10-06-15 01:03 AM
  5. KermEd's Avatar
    I didn't get any answers from BlackBerry Support forum so far, but your answer helped me solving my issue with the code.
    Thank you so much!
    No problem glad it helped!

    Posted to CB via my Passport | Lloyd Summers | FileArchiveHaven
    10-09-15 12:13 AM

Similar Threads

  1. Spotify and NatWest apps for BB10?
    By eggman1987 in forum General BlackBerry News, Discussion & Rumors
    Replies: 11
    Last Post: 10-09-15, 12:27 AM
  2. When will we BlackBerry users able to sign into their Adobe account and sync their files on their phone?
    By CrackBerry Question in forum General BlackBerry News, Discussion & Rumors
    Replies: 2
    Last Post: 09-17-15, 09:57 AM
  3. Internet Access on BB10 Devices with BES 12
    By CrackBerry Question in forum Ask a Question
    Replies: 0
    Last Post: 09-17-15, 04:34 AM
  4. Android on Venice is confirm?
    By siung6 in forum BlackBerry Priv
    Replies: 4
    Last Post: 09-17-15, 02:01 AM
LINK TO POST COPIED TO CLIPBOARD