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