Mudlet 3.0 cURL

Post Reply
solao
Posts: 5
Joined: Wed Oct 19, 2016 4:27 am

Mudlet 3.0 cURL

Post by solao » Mon Jan 09, 2017 2:49 pm

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

User avatar
Vadi
Posts: 4703
Joined: Sat Mar 14, 2009 3:13 pm

Re: Mudlet 3.0 cURL

Post by Vadi » Tue Feb 14, 2017 8:53 pm

Mudlet doesn't include cURL by default - we do have a downloadFile() function though, check that out.

User avatar
Vadi
Posts: 4703
Joined: Sat Mar 14, 2009 3:13 pm

Re: Mudlet 3.0 cURL

Post by Vadi » Mon Feb 27, 2017 12:05 pm

How did you go with this? Need any help?

solao
Posts: 5
Joined: Wed Oct 19, 2016 4:27 am

Re: Mudlet 3.0 cURL

Post by solao » Mon Feb 27, 2017 3:05 pm

Everything is flowing okay right now. Wish there was a direct cURL. But this method is working right now.

User avatar
Vadi
Posts: 4703
Joined: Sat Mar 14, 2009 3:13 pm

Re: Mudlet 3.0 cURL

Post by Vadi » Mon Feb 27, 2017 3:54 pm

Okay! Let us know if you run into any sort of barriers.

Post Reply

Who is online

Users browsing this forum: No registered users and 7 guests