[Metamod] Meta cURL Downloader [v1.0]

Adding Modules to help with scripting/coding plugins.
User avatar
Archive-Poster
Posts: 1189
Gender:
United States of America

[Metamod] Meta cURL Downloader [v1.0]

Post by Archive-Poster »

Description:

This is a simple utility Metamod plugin to download items from Internet or any local Web Address. It's useful when HLDS server runs on a remote Web Location and you need to upload Large Files to the Server from another Web Location.

Libraries Used:
libcurl
openssl
openldap

Protocols Supported:
DICT ( not tested )
FILE ( not tested )
FTP
FTPS
Gopher ( not tested )
HTTP
HTTPS
IMAP ( not tested )
IMAPS ( not tested )
LDAP ( not tested )
LDAPS ( not tested )
POP3 ( not tested )
POP3S ( not tested )
RTMP ( not tested )
RTSP ( not tested )
SCP ( not tested )
SFTP ( not tested )
SMTP ( not tested )
SMTPS ( not tested )
Telnet ( not tested )
TFTP ( not tested )

Format: (To be used in Game Server Console)

curl "<source>" "<destination relative to gamedir with filename ( directory must exist )>"

Examples:
curl "https://www.foobar.com/de_dust.bsp" "maps/de_dust2.bsp"
curl "ftp://username:password@host:port/addons/amxmodx/data/GeoIP.dat" "addons/amxmodx/data/GeoIP.dat"
Note - It's important to put the quotes around the Source and Destination

Warning:
Do not use cURL to download when there are players on the Server. It will freeze the Server till the download is not Complete
Once the Download is being done, there is not way to interrupt it except by closing the Server
This is only a Utility Plugin and hence should be used only when required.
Try it at your own Risk
Attachments
meta_curl_win32_binary.zip
(413.01 KiB) Downloaded 3 times
meta_curl_win32_source.zip
(1.91 MiB) Downloaded 5 times

Who is online

Users browsing this forum: No registered users and 1 guest