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

using Curl to POST via REST.

Hi People,

I have been trying to post a labresource to RQM using curl, with no
success. Anyone got any ideas?

Here is my script

user=santa
passwd=claus
host="https://host:9443/jazz"

COOKIES=./cookies.txt

file=labresourceLabMachine1_LR.xml

curl -k -c $COOKIES "$host/authenticated/identity"
curl -k -L -b $COOKIES -c $COOKIES -d j_username=$user -d
j_password=$passwd "$host/authenticated/j_security_check"
# If this line returns the JSON representation of work item 1,
authentication was successful

curl -k -b $COOKIES -X POST -H 'Content-type: text/xml' -d @./$file
$host/secure/service/com.ibm.rqm.integration.service.IIntegrationService/resources/ITCAM%20for%20Transactions/labresource/labresourceLabMachine1_LR


here is the xml

<xml>
<labresource>
<title>LabMachine3</title>
<description>Sample machine with
Windows XP and IE</description>
<updated>
<state>
<creator>
<owner>
<tdm><xml>
<core>
<server>
<server>
<core>
</server>

<os>
<os>
</os>
</core></tdm>
</labresource>

I get the response

File Upload Response:500,Internal server error

0 votes



One answer

Permanent link
Note: This post is 5+ years old.

Please upgrade to the latest version of RQM (see https://jazz.net/downloads/rational-quality-manager/) and review the product documentation (see https://jazz.net/help-dev/clm/topic/com.ibm.help.common.jazz.calm.doc/com.ibm.help.common.jazz.calm.doc_eclipse-gentopic1.html) and jazz.net resources (see https://jazz.net/help).  If your issue persists, please ask a new question (https://jazz.net/forum/questions/ask), open a defect (see https://jazz.net/mystuff/#tab=workitems), or open a PMR (see http://www-01.ibm.com/support/docview.wss?uid=swg21507639).

0 votes

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

Question asked: Apr 21 '10, 8:52 p.m.

Question was seen: 6,349 times

Last updated: May 28 '15, 6:29 a.m.

Confirmation Cancel Confirm