lua-users home
lua-l archive

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


> If Lua also had a binding for libcurl(http://curl.haxx.se/libcurl/) it
> would be possible to do some really cool web scripting. In the meantime
> execute("curl https:...") works ok.

I can top that for grossness:

local rv = execute("POST -c 'text/xml' -H 'User-Agent: LuaXMLRPC/0.0' -H
'Host: "..host.."' " ..url .. "</tmp/a >/tmp/b")

where /usr/bin/POST came from libwww-perl, or at least that's what the
Debian package tools say...

I'll take a look at libcurl right after I get LuaSocket built.

Jay