I can open a url in IE constructed like this to login, access /servlet/Router/Transaction/Erp, and get valid xml returned:
http://lawson-server:port...r/Transaction/Erp... with proper params.
This does not work the same from an asp, for remote login, using Msxml2.ServerXMLHTTP.4.0: code sample: Set objSvrHttp = Server.CreateObject("Msxml2.ServerXMLHTTP.4.0")
objSvrHttp.open "GET", "http://lawprod:9082/sso/SSOServlet?_action=LOGIN&_ssoUser=myid&_ssoPass=mypa55wd&_ssoOrigUrl=http://lawprod:9082/servlet/Router/Transaction/Erp...."
objSvrHttp.send
cookie = objSvrHttp.getResponseHeader("Set-Cookie")
...
objSvrHttp.Open "GET", "http://lawprod:9082/sso/SSOServlet?_action=LOGIN&_ssoUser=myid&_ssoPass=mypa55wd&_ssoOrigUrl=http://lawprod:9082/servlet/Router/Transaction/Erp...." objSvrHttp.setRequestHeader "COOKIE", left(cookie,instr(1,cookie,";")-1)
How can I do this programmatically, in a manner like it works when pasted into the browser (and valid xml is returned)? Is the cookie in Response Header - and can it be sent in the Request Header?