Get a custom response server header with Cache
Hello,
I'm using Cache 2016.
I try to get a property set in my server response header.
I tried to get it in %request and %response but without success ...
Some one have an idea ?
Here an example of what i try to get :
Thank you
Sébastien
To set any response header, you should overwrite OnPreHTTP method in your CSP Page class.
Hello Dimitry,
You right I can access some response header in the OnPreHTTP with GetHeader.
But apparently i cant access to all my header variable, in my case I add a custom variable named SSLDN (server side) but I cant see it in %response ...
Thanks
Sébastien
Code/data sample?
Code sample maybe?
i'm with the same problem,
i receive a response in rest and want to take information from the response header. to imput information on request header ok, but to take the information from the response header is the problem.
Hi Sébastien,
i think the folowing will resolve your problem.
quit:$$$ISERR(tSC) tSC
set response.token= httpResponse.GetHeader("AUTH-TOKEN")
this way, you can get the property of header.
Social networks
InterSystems resources
Log in or sign up
Log in or create a new account to continue
Log in or sign up
Log in or create a new account to continue
Log in or sign up
Log in or create a new account to continue