cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Java RESTful access returns 403


Hello,


I am currently trying to access the RESTful interfaces using Java, but I keep receiving a 403 HTTP response code. I am assuming this has to do with the HTTP Basic authentication. Below is my code:


HttpURLConnection connection = (HttpURLConnection)url.openConnection();
connection.addRequestProperty("Authorization", "Basic " + authStringEnc);
int responseCode = ((HttpURLConnection) connection).getResponseCode();
logInfo("The response code is" + Integer.toString(responseCode));


The user that I am using is admin, thus having all privileges to carry out web services calls to the dashboards. Any suggestions?

2 REPLIES 2

ahmed_el_jafouf
Dynatrace Pro
Dynatrace Pro

Hi Jose -- Where did you set up the admin user credentials?

supriya_kamble
Participant

any one please answer this.....i am stuck with same