[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Persistent http connection
- From: Coda Highland <chighland@...>
- Date: Wed, 7 Nov 2018 14:44:21 -0600
On Wed, Nov 7, 2018 at 1:56 PM Dirk Laurie <firstname.lastname@example.org> wrote:
> You need to provide a file for stroing cookies.
> I can do it from the module 'curl' installed by 'luarocks install lua-curl'.
> local session = curl.easy()
> local cookies
> if curl.OPT_COOKIEFILE and curl.OPT_COOKIEJAR then
> cookies = os.tmpname()
> logins[session] = cookies
> message("Your 'curl' does not support cookies. You will be anonymous.")
> The module 'http' should offer a similar service.
That's curious. A cookie jar is required in order to use HTTP
keepalive? Is that documented? It seems like a dubious dependency.