LibcurlFrom Libzter
libcURL
[edit] Overviewlibcurl is a URL transfer library. It is used to transfer data by a set of featured protocols. [edit] ExampleThis code downloads the front page of sourceforge.net using HTTPS. #include <stdio.h> #include <curl/curl.h> int main(int argc, char** argv){ CURL* curl; CURLcode res; curl = curl_easy_init(); if( curl ){ // URL to retreive curl_easy_setopt(curl,CURLOPT_URL,"https://sourceforge.net/"); // Skip Certificate verification (on, for instance, self signed certificates..) // curl_easy_setopt(curl, CURLOPT_SSL_VERIFYPEER, 0L); // Skip hostname, if the connection is to some other hostname than the certificate // curl_easy_setopt(curl, CURLOPT_SSL_VERIFYHOST, 0L); res = curl_easy_perform(curl); curl_easy_cleanup(curl); return 0; }; [edit] Supported protocols
[edit] Features
[edit] Platforms
[edit] LanguagesMain API is in plain C. However, bindings exists. C++, Java, .NET, PHP, Ruby, Cocoa, Perl, Python and many more. libcurl bindings [edit] LinksUser comments on this article (Libcurl) |
||