Hi all, I'm reading https://curl.se/libcurl/c/CURLOPT_XOAUTH2_BEARER.html but can't seem to see the header at all or find any code at https://github.com/curl/curl/search?q=CURLOPT_XOAUTH2_BEARER
For example? res = curl_easy_setopt( curl, CURLOPT_XOAUTH2_BEARER, "zxczx"); if (res != CURLE_OK) { fprintf(stderr, "curl_easy_setopt() failed: %s\n", curl_easy_strerror(res)); free(json_string); http_cleanup_curl(curl, headers); return EXIT_FAILURE; } } res = curl_easy_setopt(curl, CURLOPT_HTTPHEADER, headers); if (res != CURLE_OK) { fprintf(stderr, "curl_easy_setopt() failed: %s\n", curl_easy_strerror(res)); free(json_string); http_cleanup_curl(curl, headers); return EXIT_FAILURE; } // Send the json :-) res = curl_easy_perform(curl); What am I missing? Is it better to just add the header by hand? Thanks. -- Kind Regards, Gavin Henry. https://sentrypeer.org
-- Unsubscribe: https://lists.haxx.se/listinfo/curl-library Etiquette: https://curl.se/mail/etiquette.html