No cast is necessary. #define CURLAUTH_BEARER (((unsigned long)1)<<6)
Sent from Mail<https://go.microsoft.com/fwlink/?LinkId=550986> for Windows From: Dan Fandrich via curl-library<mailto:curl-library@lists.haxx.se> Sent: Monday, February 20, 2023 10:16 PM To: curl-library@lists.haxx.se<mailto:curl-library@lists.haxx.se> Cc: Dan Fandrich<mailto:d...@coneharvesters.com> Subject: Re: CURLOPT_XOAUTH2_BEARER use? On Tue, Feb 21, 2023 at 03:01:53AM +0000, Matthew Bobowski via curl-library wrote: > c = curl_easy_setopt(pCurl, CURLOPT_HTTPAUTH, CURLAUTH_BEARER); Don't forget to cast this to a long; this makes a difference in some environments. Dan -- Unsubscribe: https://lists.haxx.se/listinfo/curl-library Etiquette: https://curl.se/mail/etiquette.html
-- Unsubscribe: https://lists.haxx.se/listinfo/curl-library Etiquette: https://curl.se/mail/etiquette.html