I am a rookie in the world of Java and even more so in the world of Border
Manager...so bare with me (thanks!).

Essentially we are writing a Java program which acts as a Webservice
client. We need to connect to an outside IP (the Webservice server).

Our Java code uses the conventional code for going through a proxy. We
are pointing our http call to our BM proxy. However we are getting a
Java exception which looks like BM is redirecting us to the https client
login screen. Unfortunately this is not an interactive application. We
are passing user id and password in our http request to bm. Is there any
certificates or something else I may be missing?

Note: we are running stand alone java on unix without a novel client.

Are code looks like:

// stuff for the proxy
System.setProperty("proxySet", "true" );
System.setProperty("http.proxyPassword", "<border-manager-pswd");

// stuff for the outside url
URL u = new URL("<outside URL>");
HttpURLConnection con = (HttpURLConnection) u.openConnection();
sun.misc.BASE64Encoder encoder = new sun.misc.BASE64Encoder();
String encodedUserPwd = encoder.encode("<user-id>:<password>".getBytes());
con.setRequestProperty ("Proxy-Authorization", "Basic " + encodedUserPwd);