[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: LuaSocket, HTTP persistence
- From: gary ng <garyng2000@...>
- Date: Sat, 23 Aug 2008 00:38:07 -0700 (PDT)
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 <firstname.lastname@example.org> wrote:
> From: Eric Tetz <email@example.com>
> Subject: LuaSocket, HTTP persistence
> To: firstname.lastname@example.org
> 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
> Is that possible with LuaSocket? If so, is there any
> example code
> available? If not, are there any other Lua networking
> modules that
> If a Lua solution isn't available, I'd welcome
> (offline) for more appropriate languages/packages (must be
> between Windows and Linux).