I need to access azure cloud table using java. My internet works behind proxy and needs authentication. I searched on internet and found this -
System.setProperty("http.proxyHost", "172.16.2.1");
System.setProperty("http.proxyPort", "3128");
System.setProperty("http.proxyUser", "username");
System.setProperty("http.proxyPassword", "password");
but it gives the following error,
The Azure storage client library sample TableBasics starting... Got an exception from running samples. Exception details: com.microsoft.windowsazure.services.core.storage.StorageException: The server encountered an unknown failure: Proxy Authentication Required at com.microsoft.windowsazure.services.core.storage.StorageException.translateException(StorageException.java:129) at com.microsoft.windowsazure.services.core.storage.utils.implementation.StorageOperation.materializeException(StorageOperation.java:158) at com.microsoft.windowsazure.services.core.storage.utils.implementation.ExecutionEngine.executeWithRetry(ExecutionEngine.java:142) at com.microsoft.windowsazure.services.table.client.QueryTableOperation.performRetrieve(QueryTableOperation.java:218) at com.microsoft.windowsazure.services.table.client.TableOperation.execute(TableOperation.java:562) at com.microsoft.windowsazure.services.table.client.CloudTableClient.execute(CloudTableClient.java:262) at com.microsoft.windowsazure.services.table.client.CloudTable.exists(CloudTable.java:416) at com.microsoft.windowsazure.services.table.client.CloudTable.createIfNotExist(CloudTable.java:223) at com.microsoft.windowsazure.services.table.client.CloudTable.createIfNotExist(CloudTable.java:186) at test1.TableBasics.main(TableBasics.java:63)
The Azure storage client library sample TableBasics completed.