Page 1 of 1

Anyone got lure working? Or some other Https thingy??

Posted: Wed Dec 14, 2022 10:52 am
by Gunroar:Cannon()
I got this from github and didn't know how to require it so I started from require ("build/lua/lure") and trying to fix errors to get the Http request (so I can do leaderboards) but it seems hopeless. Is there an alternative or an already pure lua (no .so or .dll) solution so I can use something like Lootlocker or dreamlo?

Re: Anyone got lure working? Or some other Https thingy??

Posted: Thu Dec 15, 2022 9:35 pm
by mr_3tianne
Just use the built in networking module (LuaSocket).

Code: Select all

local http = require("socket")

http.request({
	method = "GET",
	url="http://your.url/",
})

Re: Anyone got lure working? Or some other Https thingy??

Posted: Thu Dec 15, 2022 10:16 pm
by ivan
I managed to get luasec working but it is not pretty.
A better option is https.dll as described in my topic:
viewtopic.php?f=4&t=93856
This is not pure Lua, but it works quite well.
The only downside is that we need a uniform way to include this library between Love2D distributions.
This is necessary so that the same Lua code would work across platforms.

Re: Anyone got lure working? Or some other Https thingy??

Posted: Thu Dec 15, 2022 10:29 pm
by Gunroar:Cannon()
(Ahhh, jee, I messed up. Now I've got 2 similar topics.)

What's the difference between luasec and http I've been recommended. Can http module get the job done? Won't it give an error with URLs starting with https

Re: Anyone got lure working? Or some other Https thingy??

Posted: Fri Dec 16, 2022 10:45 am
by ivan
Can http module get the job done?
You need https.dll to make SSL requests. Please read over the provided link for details.
Luasec is a generic Lua module whereas https.dll works better with Love2D