Thanks,
It worked perfect,
The problem seems to be the missing of this two lines :
byte[] credBytes = (username + ":" + password).getBytes();
String credEncodedString = "Basic " + new BASE64Encoder().encode(credBytes);
:)
Thanks,
It worked perfect,
The problem seems to be the missing of this two lines :
byte[] credBytes = (username + ":" + password).getBytes();
String credEncodedString = "Basic " + new BASE64Encoder().encode(credBytes);
:)