fork download
  1. #include <stdio.h>
  2. #include <curl/curl.h>
  3.  
  4. int main(void) {
  5. CURL *curl;
  6. CURLcode res;
  7.  
  8. curl = curl_easy_init();
  9. if (curl) {
  10. curl_easy_setopt(curl, CURLOPT_URL, "https://w...content-available-to-author-only...e.com/watch?v=L2gKQI2Sy-A");
  11. res = curl_easy_perform(curl);
  12. /* Check for errors */
  13. if (res != CURLE_OK) {
  14. fprintf(stderr, "curl_easy_perform() failed: %s\n",
  15. curl_easy_strerror(res));
  16. }
  17. /* always cleanup */
  18. curl_easy_cleanup(curl);
  19. }
  20. return 0;
  21. }
  22.  
Success #stdin #stdout 0.02s 25700KB
stdin
Standard input is empty
stdout
#include <stdio.h>
#include <curl/curl.h>

int main(void) {
    CURL *curl;
    CURLcode res;

    curl = curl_easy_init();
    if (curl) {
        curl_easy_setopt(curl, CURLOPT_URL, "https://w...content-available-to-author-only...e.com/watch?v=L2gKQI2Sy-A");
        res = curl_easy_perform(curl);
        /* Check for errors */
        if (res != CURLE_OK) {
            fprintf(stderr, "curl_easy_perform() failed: %s\n",
                    curl_easy_strerror(res));
        }
        /* always cleanup */
        curl_easy_cleanup(curl);
    }
    return 0;
}