by Nickr5
Communicate with web servers - includes HTTP POST requests! [More]
To download this library for your Linux/Mac installation, enter this on your command line:

DreamDownload byond://Nickr5.n_cURL##version=0

Emulator users, in the BYOND pager go to File | Open Location and enter this URL:


Version 11.3.26
Date added: Mar 25 2011
Last updated: Mar 26 2011
3 fans
This library uses cURL (included with the library) to send requests to a web server. Currently supports http(s) GET, POST, PUT, and DELETE. Because the library uses the shell() command, games using it require trusted permissions.

The following code searches Bing and displays the results to the user:
search(term as text)
if(curl.Http("", list(q = term), "out.html"))
usr << browse(file("out.html"))

This is only an example - there are better ways do this in BYOND without this library.