Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-5010291

Proxy host is retunrned as null when PAC file points to "DIRECT"

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not an Issue
    • Icon: P5 P5
    • None
    • 1.4.2_03
    • deploy
    • None
    • x86
    • solaris_2.5

      Please refer to bugid 4988192.
      As a workaround to bugid 4988192 the following solution was proposed by
      the plugin team ...
      ProxyInfo proxy = PluginProxyManager.getProxyInfo(url);
      String proxyInfo = proxy.getProxy(); // get the host name
      int port = proxy.getPort(); // get the port.

      This solution works only when the PAC files points to proxy server (e.g
      PROXY host:proxy).
      However a PAC file can return "DIRECT" also.

      If the PAC file points to "DIRECT" the proxy host returned should be
      a string, like "DIRECT" and not null.

            xlu Xiaobin Lu (Inactive)
            duke J. Duke
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: