Hi, I tried to create a swing browser. I've proxy which restricts the access to internet even after setting the basic proxy settings:
-------------------------------------------------------------------------
URLConnection urlConn = pageUrl.openConnection();
String encodedPassword = "+yo0QiEJIdQQEINb9THLlmAw3LmZCL54mWuE0uoJQpWj5DCcWBwBHQ==";
******* ( encoded Password & username to base64 )
urlConn.setRequestProperty("Proxy-Authorization",encodedPassword);
Properties systemProperties = System.getProperties();
systemProperties.put("proxySet","true");
systemProperties.put("proxyHost","xxx.xxx.xxx.xxx");
systemProperties.put("proxyPort","80");
Can any one assist me how to connect to proxy... i'm getting the home page/login screen of the proxy server ( may be the home page of that proxy server...used 80 port)
Any assistance is greatly appreciated... :-)
thanks,
Ravi.