wlCookie object -- any way to Get contents?
I have a need to store information from a cookie generated by our website. Unfortunately I only see methods for Delete, Set, and ClearAll.
Does anyone know of anyway to extract the cookies that WebLoad stores?
Re: wlCookie object -- any way to Get contents?
There is an example of how to do this on RadView's Website it is in the support section under Agenda Center Examples. The example is called Capturing and displaying cookies. Here is where it is located: http://www.radview.com/support/AgCtr...CE_Cookies.asp
If this isn't successful it could be that the cookie has a different key name (like "cookie" instead of "set cookie"). If this is the case you can always loop through the headers to retreive the cookie key and value with the following code:
InfoMessage("HEADER#: " + x + " TITLE: " +d[x].key +
} while (x < d.length)
Once you know the cookie key you can use the capture cookie code on the Website to capture and disply the cookie:
myCookie = wlHtml.GetHeaderValue("cookie")