Module: Curl
UPDATE
Note the new module https://github.com/Next21Team/AmxxEasyHttp It has new easy to use API! Without read/write callbacks, problems with certificates and does not require clearing resources. Description: AmxxCurl module is a wrapper over libcurl easy interface for amxmodx. Module performs curl's in non-blocking mode. Download latest version here. Few words about libcurl (from wiki page): Quote:
Natives: All natives you can find in curl.inc, they have the same behaviour that C functions. Except for some: 1) Code:
native void:curl_easy_perform(const CURL:handle, const callbackComplite[], const data[] = {}, const data_len = 0) If user data set, callback should have the signature: Code:
public compliteCallback(CURL:curl, CURLcode:code, data[]) Code:
public compliteCallback(CURL:curl, CURLcode:code) Code:
native CURLcode:curl_easy_getinfo(const CURL:handle, const CURLINFO:info, any:...) Code:
new url[64] 1) if you are using callback WRITEFUNCTION, always specify the option CURLOPT_BUFFERSIZE. Specify something about 512-1024, or risk getting a stack overflow error. 2) If you are would like to use READFUNCTION callback, set pragma dynamic in 16536 or more: Code:
#pragma dynamic 16536 Source code: https://github.com/Polarhigh/AmxxCurl Releases: https://github.com/Polarhigh/AmxxCurl/releases |
Re: Module: Curl
For amxx module you need install meta plugin? It is so crutch.
|
Re: Module: Curl
openssl library is critically important library, such a solution allows to hot swap if in openssl current version vulnerability will found.
|
Re: Module: Curl
Omg you made it first :( I though of adding it into ThreadedSockets :(
Also i don't think there is a need for it to be a MetaMod Plugin, even if its linked to Metamod or Amxmodx (which is in-turn linked to MM), the outcome would be the same. |
Re: Module: Curl
Quote:
|
Re: Module: Curl
Quote:
|
Re: Module: Curl
Quote:
|
Re: Module: Curl
ohh, good module :)
|
Re: Module: Curl
Quote:
https://github.com/alldroll/curl_module Ok, maybe you and PRoSToTeM@ rights, but i thought that it better and simpler. Quote:
|
Re: Module: Curl
The natives should be documented with comments explaining how they work. I know they can be looked up, but an include file in itself should give you a general idea of how to work with the natives.
|
All times are GMT -4. The time now is 02:29. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.