lua-users home
lua-l archive

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


I imagine you would have to become familiar with luasocket and the SOCKS* protocol: http://en.wikipedia.org/wiki/SOCKS

You would script (with luasocket) connecting to the SOCKS* proxy, send the appropriate handshake data that it expects, handle its response, and therein connect to your http://target.com

(((theoretically)))

As far as I know there's nothing quite like curl for Lua.  yet.


On Wed, Nov 6, 2013 at 11:16 AM, Chris Datfung <chris.datfung@gmail.com> wrote:
I didn't get a response from my previous query so I'll try to rephrase. Is there a lua equivalent to:

curl --socks5-hostname localhost:1234 http://target.com/

when using the proxy directive in socket.http, the proxy is HTTP and not socks.

How can I configure lua to make HTTP requests via a socks5 proxy?

Thanks,
Chris