Former HPE Products
cancel
Showing results for 
Search instead for 
Did you mean: 

VBA Authentication ALM 11.52 - Set-cookie missing in response header

 
Kepha75007
Occasional Visitor

VBA Authentication ALM 11.52 - Set-cookie missing in response header

Hi community !

I'l trying to authenticate on ALM 11.52 server through VBA Excel.

Dim objHTTP As New MSXML2.XMLHTTP60

url_authenticate = url_base & "/authentication-point/authenticate"
' where url_base is https://<alm-server>/qcbin
Call objHTTP.Open("POST", url_authenticate, False, user, pwd)
Call objHTTP.send("")
token = objHTTP.getResponseHeader("Set-Cookie")

No matter what is the type of request (POST, GET)... token is always empty.

Set-Cookie response header is missing and objHTTP.status=200...

The same request (same URL, user and password), sent through Firefox Rest Client plugin, gets Set-Cookie in response header.

Any idea why Set-Cookie is not part of response header ?

Thank you

Kepha

2 REPLIES 2
Dennis Handly
Acclaimed Contributor

Re: VBA Authentication ALM 11.52 - Set-cookie missing in response header

This is the wrong forum (and in the future the wrong company) for software questions.
https://community.saas.hpe.com/

https://community.saas.hpe.com/t5/Quality-Center-ALM-Practitioners/bd-p/itrc-895

Kepha75007
Occasional Visitor

Re: VBA Authentication ALM 11.52 - Set-cookie missing in response header

Thx Dennis, my mistake.

By the way, if anyone encounters the same problem, I found the solution.

Changing

objHTTP As New MSXML2.XMLHTTP60

by

objHTTP As New MSXML2.ServerXMLHTTP60

 will do.