Mudlet 3.0 cURL

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

Mudlet 3.0 cURL

Post 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

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

Re: Mudlet 3.0 cURL

Post by Vadi »

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

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

Re: Mudlet 3.0 cURL

Post by Vadi »

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 »

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

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

Re: Mudlet 3.0 cURL

Post by Vadi »

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

Post Reply