It's all about the answers!

Ask a question

using curl to get execution result details via RQM rest api


Binoy D'costa (9532737) | asked Jun 10 '15, 11:38 a.m.
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


permanent link
Jing Qian (12632) | answered Jun 12 '15, 11:10 a.m.
JAZZ DEVELOPER
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,

Yes, ignore this. It was an issue related to user not having proper permission.

Thanks,
Binoy

Your answer


Register or to post 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.