Page 1 of 1

Mudlet 3.0 cURL

Posted: Mon Jan 09, 2017 2:49 pm
by solao
Hey,

I'm working on migrating a suite of functions from Mushclient to Mudlet for a MUD that I play. However, I use alot of CURL calls with a PHPbased API that I have hosted for certain aspects of it.

I am having difficulty getting the curl API to work on the Mac version of Mudlet. Can anyone let me know what I am doing wrong?
Code: [show] | [select all] lua
local http=require'socket.http'

local dir_results = http.request("http://seanstoves.com/dondirs.php?get=oz")

echo(dir_results)
Thanks,
Solao Bajiuik

Re: Mudlet 3.0 cURL

Posted: Tue Feb 14, 2017 8:53 pm
by Vadi
Mudlet doesn't include cURL by default - we do have a downloadFile() function though, check that out.

Re: Mudlet 3.0 cURL

Posted: Mon Feb 27, 2017 12:05 pm
by Vadi
How did you go with this? Need any help?

Re: Mudlet 3.0 cURL

Posted: Mon Feb 27, 2017 3:05 pm
by solao
Everything is flowing okay right now. Wish there was a direct cURL. But this method is working right now.

Re: Mudlet 3.0 cURL

Posted: Mon Feb 27, 2017 3:54 pm
by Vadi
Okay! Let us know if you run into any sort of barriers.