lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]

it is possible but you need to write your own HTTP handler instead of using socket.http(which does not handle persistent connection).

or use lua curl binding.

--- On Sat, 8/23/08, Eric Tetz <> wrote:

> From: Eric Tetz <>
> Subject: LuaSocket, HTTP persistence
> To:
> Date: Saturday, August 23, 2008, 10:52 AM
> I need to develop some HTTP testing code. Since I love Lua,
> I thought
> I'd try to find a Lua solution first.
> LuaSocket makes it super easy to send an HTTP request, but
> I need to
> send multiple requests over the same connection (HTTP/1.1)
> and I'd
> like to be able to pipeline requests (i.e. send multiple
> requests over
> a persistent connection without waiting for server
> response).
> Is that possible with LuaSocket? If so, is there any
> example code
> available? If not, are there any other Lua networking
> modules that
> can?
> If a Lua solution isn't available, I'd welcome
> recommendations
> (offline) for more appropriate languages/packages (must be
> portable
> between Windows and Linux).
> Thanks!
> Eric