how to get response from Author instance through a standalone code
I am trying to hit URL in cq Author instance from my standalone code.
URL looks like - http://<somehost>:<someport>//libs/dam/gui/content/reports/export.json
Below is the code -
URL url = new URL(newPath);
HttpURLConnection connection = (HttpURLConnection) url
.openConnection();
connection.setRequestMethod("GET");
connection.setReadTimeout(15 * 10000);
connection.connect();
reader = new BufferedReader(new InputStreamReader(
connection.getInputStream()));
stringBuilder = new StringBuilder();
But I got error 401 which is expected as I'm not passing any authentication information. hence Sling says that "getAnonymousResolver: Anonymous access not allowed by configuration - requesting credentials"
Please advice how to proceed on this.

