Skip to content
Curl module for amxmodx
Branch: master
Clone or download
Latest commit 48fe981 Feb 20, 2019
Type Name Latest commit message Commit time
Failed to load latest commit information.
amx_examples Add new example of http post request Feb 8, 2019
amx_includes Add description for natives and semicolon Feb 8, 2019
deps add dependencies Feb 20, 2019
src add dependencies Feb 20, 2019
.gitignore add dependencies Feb 20, 2019
LICENSE.txt Update LICENSE.txt Jul 26, 2016 Update Feb 20, 2019
premake5.lua add dependencies Feb 20, 2019


AmxxCurl module is a wrapper over libcurl (with ssl support) easy interface for amxmodx. Module performs curl's in non-blocking mode.

Download latest version here.


  1. Improving performance: using asio, curl multi interface and c-areas.
  2. Adding simple interfaces for most common cases.
  3. Improving build scripts.


You must have installed the latest version premake5. (Get it here)


Generate Visual Studio project:

premake5 vs2017

You may try generate project for another Visual Studio version.

Open solution and compile it)


Generate Makefile:

premake5 gmake

And compile it:

cd build/gmake


All natives functions you can find in, they have the same behaviour that C functions.

Except for some:

native void:curl_easy_perform(const CURL:handle, const callbackComplite[], const data[] = {}, const data_len = 0)

The function starts curl perform, and upon completion of the transfer will be call callback callbackComplite. In third parameter you can specify an array of user data, wich will be transferred to callbackComplite, and fourth parameter is array length.

If user data set, callback should have the signature:

public compliteCallback(CURL:curl, CURLcode:code, data[])


public compliteCallback(CURL:curl, CURLcode:code)
native CURLcode:curl_easy_getinfo(const CURL:handle, const CURLINFO:info, any:...)

For string type of CURLINFO option, you must set fourth argument - string size:

new url[64]
curl_easy_getinfo(curl,CURLINFO_EFFECTIVE_URL, url, charsmax(url))


If this description contains a strange phrases, please do a fix commit)

You can’t perform that action at this time.