I am using system.properties in my java code. It works perfect on a windows 7 OS but fails on ubuntu12.04.
I used tomcat at both the places. Any help in this regard will be helpful.
System.setProperty("http.proxyHost", proxyhost);
System.setProperty("http.proxyPort", proxyport);
String encoded = new String(encoder.encode(new String(username+":"+password).getBytes()));
uc.setRequestProperty("Proxy-Authorization", "Basic " + encoded);
Exception: java.io.IOException: Server returned HTTP response code: 401 for URL: http://