It's all about the answers!

Ask a question

using Curl to POST via REST.


Phil Rumble (6196) | asked Apr 21 '10, 8:52 p.m.
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

One answer



permanent link
Paul Slauenwhite (8.4k12) | answered May 28 '15, 6:29 a.m.
FORUM MODERATOR / JAZZ DEVELOPER
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).

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.