-
-
Save florianleibert/1942462 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
#include <stdio.h> | |
#include <curl/curl.h> | |
using std::cout; | |
int main(void) | |
{ | |
CURL *curl; | |
CURLcode res; | |
curl = curl_easy_init(); | |
if(curl) { | |
curl_easy_setopt(curl, CURLOPT_URL, "http://google.com"); | |
res = curl_easy_perform(curl); | |
cout << res; | |
/* always cleanup */ | |
curl_easy_cleanup(curl); | |
} | |
return 0; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment