I think this might be an easy question, but I’m just a bit stuck.
I’m using this vbscript function to open a webpage and get the cookie.
Function Fetch(URL)
Set WshShell = CreateObject("WScript.Shell")
Set http = CreateObject("Microsoft.XmlHttp")
http.open "", URL, FALSE
Fetch = http.getResponseHeader("Set-Cookie")
set WshShell = nothing
set http = nothing
End Function
It works fine for returning one cookie, but I’ve encountered a page that creates two cookies and I need them both. When I use this, it just returns the first cookie. How do I return both the cookies?
Thanks very much
Should write your own: