HTTP/1.1 401 Unauthorized - thrown while connecting to RRC through http client
![](http://jazz.net/_images/myphoto/70bc0df6aa2b6f5b88fa7b184c12dabc.jpg)
One answer
![](http://jazz.net/_images/myphoto/70bc0df6aa2b6f5b88fa7b184c12dabc.jpg)
Hi, PLS check the Open Services for Lifecycle Collaboration Workshop for Java sample code ( example04.java ) in how to authenticate with the RM Server.
Comments
![](http://jazz.net/_images/myphoto/70bc0df6aa2b6f5b88fa7b184c12dabc.jpg)
I use a Reportable Rest URL as shown below:
https://host:9443/rm/publish/resources?projectName=JKE%20Banking%20%28Requirements%20Management%29
My intension is to read all requirements belonging to JKE Banking using rest URL.
But this is giving me an HTTP/1.1 401 error with the following error message
Authentication error: Unable to respond to any of these challenges: {oauth=WWW-Authenticate: OAuth realm=https://host:9443/jts/oauth-authorize}
Note that I am doing this programmatically by using a java based HTTP client.
![](http://jazz.net/_images/myphoto/327419f47da4f93938a73e4aa8c55b71.jpg)
Hi Anjaly, Can you confirm whether you are doing the authentication as suggested in the example? Have you accessed any of the CLM servers before via the Java API?