Skip to content

pmrowla/sm-curl

Repository files navigation

sm-curl

Sourcemod libcurl wrapper extension

Some effort has been made to maintain minimal API compatibility with raydan's cURL & Hash extension, but full compatibility is not planned due to some significant design differences in the two implementations.

Installing

The system running sm-curl must have the following dependencies installed:

  • GnuTLS

Building

The following works in Ubuntu 12.04 i386

sudo apt-get install libcurl4-gnutls-dev
cd sm-curl
make

You must compile this extension against a libcurl built with GnuTLS. OpenSSL cannot be used since it is incompatible with the GPL.

Notes

Currently only the libcurl "easy" interface is implemented. There are no plans to implement the "multi" or "share" interfaces at this time.

The following functions are performed internally when necessary, and do not appear in the extension's API:

  • curl_global_init
  • curl_global_cleanup
  • curl_free

The following functions are marked as deprecated in libcurl are not available in the extensions API:

  • curl_escape (use curl_easy_escape instead)
  • curl_unescape (use curl_easy_unescape instead)
  • curl_strequal
  • curl_strunequal

License

sm-curl is distributed under the GNU General Public License version 3. See COPYING.md for more information.

libcurl is copyright (c) 1996-2013 Daniel Stenberg and is distributed under an MIT derivative license.

ulib is copyright (c) 2012-2013 Zilong Tan and is distributed under the MIT license.

About

Sourcemod libcurl wrapper extension

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published