getting status code 500 when sending request using java code.
query1=https://jazzserver.com/rm/types/_Gjv3oPRDEeKh39QdzLt5FQ#_23fa87eb-66d5-4705-b6ad-ba3346aabd96
If I use the above url , I get a status code 500. I am using the following as the header
here's the code snippet:
HttpGet actionQuery = new HttpGet(query1);
System.out.println("actionQuery "+actionQuery);
actionQuery.addHeader("Accept", "application/xml");
actionQuery.addHeader("OSLC-Core-Version", "2.0");
HttpResponse response = HttpUtils.sendGetForSecureDocument(server, actionQuery, login, password, httpclient,jtsServer);
I tried url encoding but that does not seem to work.
If I use firefox RESTClient it gives me the expected response
Comments
Bo Chulindra
JAZZ DEVELOPER Aug 19 '13, 11:04 a.m.any error in the log?