fork download
  1. CURL *curl;
  2. CURLcode res;
  3. curl = curl_easy_init();
  4. if(curl) {
  5. curl_easy_setopt(curl, CURLOPT_CUSTOMREQUEST, "GET");
  6. curl_easy_setopt(curl, CURLOPT_URL, "https://a...content-available-to-author-only...x.com/metar/KJFK/decoded");
  7. curl_easy_setopt(curl, CURLOPT_FOLLOWLOCATION, 1L);
  8. curl_easy_setopt(curl, CURLOPT_DEFAULT_PROTOCOL, "https");
  9. struct curl_slist *headers = NULL;
  10. headers = curl_slist_append(headers, "X-API-Key: d3993545678f4bd9a5a53f7acf");
  11. res = curl_easy_perform(curl);
  12. }
  13. curl_easy_cleanup(curl);
Success #stdin #stdout 0.02s 25644KB
stdin
Standard input is empty
stdout
CURL *curl;
CURLcode res;
curl = curl_easy_init();
if(curl) {
  curl_easy_setopt(curl, CURLOPT_CUSTOMREQUEST, "GET");
  curl_easy_setopt(curl, CURLOPT_URL, "https://a...content-available-to-author-only...x.com/metar/KJFK/decoded");
  curl_easy_setopt(curl, CURLOPT_FOLLOWLOCATION, 1L);
  curl_easy_setopt(curl, CURLOPT_DEFAULT_PROTOCOL, "https");
  struct curl_slist *headers = NULL;
  headers = curl_slist_append(headers, "X-API-Key:  d3993545678f4bd9a5a53f7acf");
  res = curl_easy_perform(curl);
}
curl_easy_cleanup(curl);