HTTPX_GetData

HTTPX_GetData(data[], len) Fills variable data[] with the last chunk downloaded. len decides maxlen for the data[] variable. Remember, this is raw data. No need to make room for null at the end unless you're passing it to any function that is trying to automatically find the end by searching for null (any string function). The function will return the ammount of bytes that was written to the data[] variable. By looping this function until it returns 0, you can get all the data.

Syntax

native HTTPX_GetData(data[], len) /** * Automatic updating * Updates current plugin automatically (from AlliedModders webpage only to prevent spreading of malicious code). * * * file_id[] has to be the same as it is on the forum webpage. (Check the link of the .amxx file ("Get Plugin" link)) * * * If frequency is supplied you can set how often to update the file. If none is provided it will update as soon as possible. * Please use this respectfully. Don't overload the AM forums. * * You can however provide your own method of determining whether the file needs to be updated or not before calling this function. * That way you don't stress AM servers when not required. An example of this is in the HTTPX source which uses this method. * * Examples: * 1d = 86400 * 1w = 604800 * 30d = 2592000 * * * IMPORTANT! * The reason for this not being a native is that it does not halt the plugin if HTTPX is not running. HTTPX and automatic updating is optional. * Use this example instead. the File ID is the attachment in your post on the AM forums. Only use the ID, not the whole URL. * For example: * The plugin Name Replacer by anakin_cstrike, @http://forums.alliedmods.net/showthread.php?t=77401&highlight=replacer * Scroll down and hover the "Get Plugin", there you see the file ID. Just replace the placeholder with that value. * #define AUTOUPDATE_FILE_ID "76775" * Add the time or create your own method of deciding when it's supposed to be updated and you're done.

Usage

data
len
Defined in httpx.inc at line 75 . This documentation was automatically generated from source.