[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: How to get a webpage with Lua Socket ?
- From: Terminar <terminar@...>
- Date: Wed, 25 Nov 2015 21:41:03 +0100
Hi,
> luasocket is old and unmaintained. it shouldn't be used for new projects.
Uhm? Sure? Just my two cents:
Yes, it's seems it is not full throttle development (are updates needed in it just works?) and i think Diego mentioned somewhere that he hasn't that much time but there was even an Ipv6 capable update/RC and it seems that there are still commits:
https://github.com/diegonehab/luasocket
Mentioning that to the maybe (!) most used lua socket library in the lua eco system (which is also mature, portable and stable)...
I am not sure how lua-curl can be a replacement for luasocket. Maybe for the http.request module - that makes more sence to me :)
Please correct me if i am wrong here.
Bye
Björn
> i've been using lua-curl since a while and it works great for me. it
> supports ssl out of the box and can do async too.
>
>
>> On Tue, Nov 24, 2015 at 7:03 PM, Paul K <paul@zerobrane.com> wrote:
>> Hi Geoff,
>>
>>> This library doesnt appear to have a windows binary available. So I have to build it myself, with not very good build notes.
>>> I wonder if I could snag the luasec *.lua files and *.dll file I need from my Zerobrane Studio installation ? That might be a simpler solution ?
>>
>> Yes, you should be able to get all the files including the binary from
>> this commit: https://github.com/pkulchenko/ZeroBraneStudio/commit/0d8e6b058186fb361680ed05ff8dceec5123c70c.
>> The DLL is no longer packaged with the IDE, but you can still get it
>> from the archive. Note that you still need openssl libraries installed
>> and referenced in PATH, but they come with many applications, like
>> wget, svn, and others.
>>
>> Another option is to compile luasec using the build scripts from ZBS.
>> You'll need to pull the latest changes from the repository and then
>> run "(cd build; bash build-win32.sh lua luasec)". This should build
>> and install ssl.dll in the right place under ZBS tree (and it will
>> include all the dependencies) as long as you have mingw/msys or tdm
>> installed.
>>
>> Yet another option is to try luarocks or luadist
>> (https://github.com/LuaDist/luasec/releases/tag/0.4-Windows-x86);
>> you'd still need openssl libraries and headers though.
>>
>> Paul.
>