Advertisement
Guest User

Untitled

a guest
Sep 24th, 2016
53
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. CURL* curl;
  2. FILE* data;
  3. std::string url;
  4.  
  5. // ...
  6.  
  7. curl_easy_setopt(curl, CURLOPT_WRITEFUNCTION, write_callback);
  8. curl_easy_setopt(curl, CURLOPT_FILE, data);
  9. curl_easy_setopt(curl, CURLOPT_URL, url);
  10.  
  11. curl_easy_setopt(curl, CURLOPT_FOLLOWLOCATION, true);
  12. curl_easy_setopt(curl, CURLOPT_SSL_VERIFYPEER, false);
  13.  
  14. CURLcode res = curl_easy_perform(curl);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement