Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- CURL* curl;
- FILE* data;
- std::string url;
- // ...
- curl_easy_setopt(curl, CURLOPT_WRITEFUNCTION, write_callback);
- curl_easy_setopt(curl, CURLOPT_FILE, data);
- curl_easy_setopt(curl, CURLOPT_URL, url);
- curl_easy_setopt(curl, CURLOPT_FOLLOWLOCATION, true);
- curl_easy_setopt(curl, CURLOPT_SSL_VERIFYPEER, false);
- CURLcode res = curl_easy_perform(curl);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement