J2SE Proxy Authentication

后端 未结 4 1870
孤独总比滥情好
孤独总比滥情好 2021-01-01 06:12

We use 2 SIMILAR Microsoft ISA Proxy Server 2003 to connect to internet. Each Proxy has different Login style, as below :

Server-1 : nt-domain\\alan Server-2 : alan@

4条回答
  •  抹茶落季
    2021-01-01 06:44

    There are some good libraries that can help you to get over this issue. Proxy Vole (Network proxy auto detection for Java) can will help you to use the same proxy settings as Internet Explorer to authenticate via the proxy.

    To provide network connectivity out of the box for you Java application you can use the Proxy - Vole library. It provides some strategies for autodetecting the current proxy settings. There are many configureable strategies to choose from. At the moment Proxy - Vole supports the following proxy detection strategies.

    • Read platform settings (Supports: Windows, KDE, Gnome)
    • Read browser setting (Supports: Firefox 3.x, Internet Explorer)
    • Read environment variables (often used variables on Linux / Unix server systems)
    • Auto detection script by using WPAD/PAC (Only some features supported)

提交回复
热议问题