Dec 11

You need to set the “Proxy-Authorization” request property.

URLConnection connection = url.openConnection();
String authentication = username"+":"+password;
String encodedAuthentication = base64Encode(authentication);
connection.setRequestProperty("Proxy-Authorization", 
     encodedAuthentication);

How to specify the proxy server to use is cover here.

written by objects \\ tags: , ,


Leave a Reply

You must be logged in to post a comment.