Downloading Web pages that require cookies
Anthony Craine
craine at sent.com
Mon Aug 30 23:34:53 EDT 2004
On Mon, 30 Aug 2004 21:43:06 +0100, "Dave Cragg"
<dcragg at lacscentre.co.uk> said:
>
> So you would do something like this (very roughly) in your script:
>
> put <some name> into tCookieName
> put <some data> into tCookieValue
> set the httpHeaders to "Cookie: " & tCookieName & "=" & tCookieValue
> get url myUrl
> set the httpHeaders to empty
>
> To get the cookie that is sent by the server, you would use
> libUrlLastRHHeaders() and parse the data for the "Set-Cookie" header.
>
> Dave
Worked perfectly. Thanks, Dave.
More information about the use-livecode
mailing list