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

API: POST method does not return Content-Location Header

Hi all.

I'm using Excel VBA and WinHttpRequest to create a test script using the POST method. The API reference says that the unique id created by RQM will be returned in a Content-Location header. The problem is, although the test script is created successfully, the Content-Location header is not returned. This means that I can't link the script to a test case.

I form the xml using DOM and POST it to the server as follows:

WinHttpRequest.Open "POST", myURL, False
WinHttpRequest.Send (oDoc.XML)
MsgBox(WinHttpRequest.GetAllResponseHeaders)

So the message box pops up with the server response (server is WebSphere Application Server 7.0) but the Content-Location header is not present.

Does anyone know if this is down to the server, or something I should be adding to my POST request.

I'm aware of the import tool but for what I'm doing I'd like to get to grips with the API.

Cheers, Cliff

0 votes



One answer

Permanent link
This has already been raised as a defect and is in the plan for a future release.

Cheers, Cliff

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: Jan 15 '10, 5:26 a.m.

Question was seen: 6,151 times

Last updated: Jan 15 '10, 5:26 a.m.

Confirmation Cancel Confirm