Hi,
I’m not sure if this question is related to Alissandra’s similar post, but in both cases you might want to consider using the Tamino HTTP Client API for JScript. This uses HTTP POST internally.
Alternatively if you need to write your own code using the MS XMLHTTP control directly, you can see how the JScript API handles sessions by looking at the source code for TaminoLib.js.
He first tries to get the session data from the Response Headers, and if that fails he gets the data from attributes of the ino:response…
var tid = REQ.getResponseHeader(XINOSESSIONID);
var key = REQ.getResponseHeader(XINOSESSIONKEY);
var version = REQ.getResponseHeader(XINOVERSION);
if (!tid || !key)
{
var root=result.DOM.getElementsByTagName("ino:response").item(0);
if (root)
{
tid = root.getAttribute("ino:sessionid");
key = root.getAttribute("ino:sessionkey");
HTH
[This message was edited by Bill Leeney on 21 Nov 2002 at 10:23.]
#API-Management#Tamino#webMethods