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);
Q1VSTCAqY3VybDsKQ1VSTGNvZGUgcmVzOwpjdXJsID0gY3VybF9lYXN5X2luaXQoKTsKaWYoY3VybCkgewogIGN1cmxfZWFzeV9zZXRvcHQoY3VybCwgQ1VSTE9QVF9DVVNUT01SRVFVRVNULCAiR0VUIik7CiAgY3VybF9lYXN5X3NldG9wdChjdXJsLCBDVVJMT1BUX1VSTCwgImh0dHBzOi8vYS4uLmNvbnRlbnQtYXZhaWxhYmxlLXRvLWF1dGhvci1vbmx5Li4ueC5jb20vbWV0YXIvS0pGSy9kZWNvZGVkIik7CiAgY3VybF9lYXN5X3NldG9wdChjdXJsLCBDVVJMT1BUX0ZPTExPV0xPQ0FUSU9OLCAxTCk7CiAgY3VybF9lYXN5X3NldG9wdChjdXJsLCBDVVJMT1BUX0RFRkFVTFRfUFJPVE9DT0wsICJodHRwcyIpOwogIHN0cnVjdCBjdXJsX3NsaXN0ICpoZWFkZXJzID0gTlVMTDsKICBoZWFkZXJzID0gY3VybF9zbGlzdF9hcHBlbmQoaGVhZGVycywgIlgtQVBJLUtleTogIGQzOTkzNTQ1Njc4ZjRiZDlhNWE1M2Y3YWNmIik7CiAgcmVzID0gY3VybF9lYXN5X3BlcmZvcm0oY3VybCk7Cn0KY3VybF9lYXN5X2NsZWFudXAoY3VybCk7
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);