curl / Mailing Lists / curl-library / Single Mail
Buy commercial curl support from WolfSSL. We help you work out your issues, debug your libcurl applications, use the API, port to new platforms, add new features and more. With a team lead by the curl founder himself.

RE: CURLOPT_XOAUTH2_BEARER use?

From: Matthew Bobowski via curl-library <curl-library_at_lists.haxx.se>
Date: Tue, 21 Feb 2023 03:19:12 +0000

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_at_lists.haxx.se>
Sent: Monday, February 20, 2023 10:16 PM
To: curl-library_at_lists.haxx.se<mailto:curl-library_at_lists.haxx.se>
Cc: Dan Fandrich<mailto:dan_at_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
Received on 2023-02-21