Software Quality Assurance & Testing Stack Exchange is a question and answer site for software quality control experts, automation engineers, and software testers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm trying to update defects in quality centre using their REST API from a curl-based script.

So far, I've managed to authenticate, store the cookie, and retrieve a defect's data from QC.

My problems start when I try to send data to update a defect, I always seem to get a 'method unsupported' exception.

My curl command is:

curl -b cookie.txt –T @xml.txt -H "Content-Type: application/xml; Accept: application/xml" http://qcserver/qcbin/rest/domains/DK/projects/R2/defects/74

I'm sending the following xml, just trying to update a standard field at the moment.

<xml version="1.0" encoding="UTF-8" standalone="yes" ?> <Entity Type="defect"><Fields><Field Name="owner"><Value>me</Value></Field></Fields></Entity>

The QC documentation says to use a 'PUT' command, so I've tried sending the XML using the -T curl option but that does not work, so I assume it still needs to be POSTed. Any suggestions gratefully received.

share|improve this question
I'm more interested about the part which talks about authenticate, store the cookie, and retrieve a defect's data from QC. Can you please explain how did you accomplish this? – Biplab Mar 11 at 0:55
5 years on? Not really. You need the QC SDK though, the docs were useful IIRC. – gbjbaanb Mar 11 at 22:17
up vote 1 down vote accepted

The curl man page says you need to use "-X PUT" to issue a PUT request.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.