Hi Sir/Madam,
I downloaded "AwSdkTest" Java program for testing download and upload files. It works fine without proxy.
But it failed with error message "Failed to authenticate with proxy" when there is proxy.
Here are my codes:
Properties systemSettings = System.getProperties();
systemSettings.put("proxySet", "true");
systemSettings.put("http.proxyHost", "userproxy.XXXXXX.com");
systemSettings.put("http.proxyPort", "80");
Proxy proxy3 = new Proxy(Proxy.Type.HTTP, new InetSocketAddress("userproxy.XXXXXX.com", 80));
System.out.println("proxy TYPE : " + proxy3.type());
InetSocketAddress addr = (InetSocketAddress) proxy3.address();
if (addr == null) {
System.out.println("No Proxy");
} else {
System.out.println("proxy hostname : " + addr.getHostName());
System.out.println("proxy port : " + addr.getPort());
}
api = new AnywhereAPI.Builder("https://hcpanywhere.hitachivantara.com:443").proxy(proxy3).insecureSSL()
.skipHostnameVerification().build();
Do you have any idea to resolve the issue?
Thanks!!
Regards,
George Lee
#HitachiContentPlatformHCPAnywhere#HitachiContentPlatformHCP