I am doing a MSXML request from one of my sites to another of my sites. They are hosted on different servers. When I do the request with a responseText command, it will set the cookies from the page I am calling with MSXML. In this instance, I do not want the entire page to load, just the cookies be presented to the user. I have a conditional statement which will set the cookies per the querystring, I just cannot figure out how to request the document and get the cookies without having it print to the screen. My current code is: <% url = "http://www.site2.com" set xmlhttp = CreateObject("MSXML2.ServerXMLHTTP") xmlhttp.open "GET", url, false xmlhttp.setRequestHeader xmlhttp.send "" set xmlhttp = nothing %> Code (markup): Thanks all!
That should be all the code nessicary. The MSXML object loads the remote page via XML. The page loads fine and accepts the cookies, but I do not want the entire page to output to the screen. I want the MSXML object to just gather the headers / cookies of the remote page, not display the whole page itself.