Thread: HTTP:X
View Single Post
Plugin Info:     Modification:          Category:         
Black Rose
Veteran Member
Join Date: Feb 2011
Location: Stockholm, Sweden
Old 05-21-2016 , 12:37   HTTP:X
Reply With Quote #1

HTTP:X

This plugin is an API to download files and web content to the server and/or send commands using the HTTP protocol through other plugins.
It is not used to send files to clients. That is impossible.

This plugin will always keep itself up to date by automatically downloading the latest version whenever a new one is available.
This means that you as a developer can be relatively sure that the client has the correct version if your plugin requires possibly new functions.
This can be disabled by cvar.

You can also use this plugin to update your own plugin automatically. I suggest adding a version check first. Examples can be found below.
Remember that floats in PAWN are not 100% accurate so integers or strings should be used for checking if there is a new version available.
Also remember that for your plugin to be updated (downloaded) it has to compile without custom includes on this site. So any external functions has to be included inside the source of your plugin.
This can also be disabled by cvar.

Examples


httpx.inc


Changelog


Additional notes:
I'm always open to suggestions, feedback and criticism. Please share your thoughts.
Attached Files
File Type: sma Get Plugin or Get Source (httpx.sma - 2004 views - 42.4 KB)
File Type: inc httpx.inc (8.1 KB, 854 views)
__________________

Last edited by Black Rose; 11-19-2017 at 16:55.
Black Rose is offline