[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- 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 <erictetz@gmail.com> wrote:
> From: Eric Tetz <erictetz@gmail.com>
> Subject: LuaSocket, HTTP persistence
> To: lua@bazar2.conectiva.com.br
> 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