[EXTENSION] cURL & Hash
A cURL extension in Sourcemod A free and easy-to-use client-side URL transfer library, supporting DICT, FILE, FTP, FTPS, GOPHER, HTTP, HTTPS, IMAP, IMAPS, LDAP, LDAPS, POP3, POP3S, RTMP, RTSP, SCP, SFTP, SMTP, SMTPS, TELNET and TFTP. libcurl supports SSL certificates, HTTP POST, HTTP PUT, FTP uploading, HTTP form based upload, proxies, cookies, user+password authentication (Basic, Digest, NTLM, Negotiate, Kerberos), file transfer resume, http proxy tunneling and more! cURL Website: http://curl.haxx.se/ Current Version: 1.3.0.0 This a a sourcemod extension, using libcurl Current libcurl Information: Version: libcurl/7.23.1 OpenSSL/0.9.8r zlib/1.2.5 libssh2/1.3.0 Protocols: dict file ftp ftps gopher http https imap imaps pop3 pop3s rtsp scp sftp smtp smtps telnet tftp The extension includes 2 hash function (file hash, string hash), provided by openssl library: Code:
enum Openssl_Hash { Developer Notes
https://code.google.com/p/sourcemod-curl-extension/ Download https://code.google.com/p/sourcemod-...downloads/list the windows version should install the following package (thanks Thrawn2 to figure out) Microsoft Visual C++ 2005 Service Pack 1 Redistributable Package MFC Security Update http://www.microsoft.com/download/en....aspx?id=26347 :3 |
Re: [EXTENSION] cURL
thanks. surely will come in handy here or there.
|
Re: [EXTENSION] cURL & Hash
on next version, all file handle, httppost handle, curl_slist handle can use CloseHandle() to close
Also, i try make a curl + msn example |
Re: [EXTENSION] cURL & Hash
I was going to make a plugin that used Google Translate for various features. This extension will definitely be useful (and I'd prefer this over sockets). Thanks!
|
Re: [EXTENSION] cURL & Hash
Quote:
|
Re: [EXTENSION] cURL & Hash
On your Test #5 you save output to a file using fwrite:
Code:
CURL_DEFAULT_OPT(curl); Code:
curl_easy_setopt(curl, CURLOPT_WRITEFUNCTION, mycallback) My objective would be to fetch the contents of a page into a string. |
Re: [EXTENSION] cURL & Hash
Quote:
|
Re: [EXTENSION] cURL & Hash
Quote:
|
Re: [EXTENSION] cURL & Hash
This might just help me immensely. However I'm a bit new to Sourcemod scripting. Can somebody explain how I would get data from a URL as follows:
http://makeavoice.com/shoutcast/webs...XXX&refresh=XX It's to receive the track name from said website. |
Re: [EXTENSION] cURL & Hash
Code:
L 09/05/2011 - 00:23:59: [SM] Unable to load extension "curl.ext": |
All times are GMT -4. The time now is 20:51. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.