using curl to get execution result details via RQM rest api
I'm trying to get a execution result resource using the following curl cmd and getting a Forbidden error:
curl -s -D - -k -b ~/.jazzcookies -o 133015.xml -H "Accept:application/xml" -H "OSLC-Core-Version:2.0" -H "Content-Type:application/rdf+xml" "https://clmserver/qm/service/com.ibm.rqm.integration.service.IIntegrationService/resources/ProjectArea/executionresult/urn:com.ibm.rqm:executionresult:133015" Any information why? Am i missing any headers? Thanks, Binoy |
Accepted answer
Are you trying to get rdf xml? If you just want the the execution result detail in xml, then you do not need OSLC-Core-Version:2.0 and Content-Type:application/rdf+xml, those are for OSLC apis.
Did you log in with a right user name and password using a browser (e.g. Firefox) first? And this user has the authority to view the execution result detail. I think you're getting authentication error which caused Forbidden error. Binoy D'costa selected this answer as the correct answer
Comments
Binoy D'costa
commented Jun 12 '15, 11:17 a.m.
Hi Qian,
|
Your answer
Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.