Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

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

0 votes


Accepted answer

Permanent link
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

1 vote

Comments

Hi Qian,

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

Thanks,
Binoy

Your answer

Register or log in 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.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 10,948

Question asked: Jun 10 '15, 11:38 a.m.

Question was seen: 2,736 times

Last updated: Jun 12 '15, 11:17 a.m.

Confirmation Cancel Confirm