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?
- Contemporary messages sorted: [ by date ] [ by thread ] [ by subject ] [ by author ] [ by messages with attachments ]
From: Patrick Monnerat via curl-library <curl-library_at_lists.haxx.se>
Date: Tue, 21 Feb 2023 00:38:01 +0100
On 2/20/23 15:25, Gavin Henry via curl-library wrote:
> If I do the usual, then all is good: > > headers = curl_slist_append(headers, "Authorization: Bearer >
xxxxxx"); > Yes, that just forces it!
> I must be missing setting another curl_easy_setopt... >
In the absence of your code listing and lack of additional info, I can
only try to guess...
- Protocol is http(s)
. You do not set CURLOPT_HTTPAUTH
(https://curl.se/libcurl/c/CURLOPT_HTTPAUTH.html). This is probably what
you need.
Date: Tue, 21 Feb 2023 00:38:01 +0100
On 2/20/23 15:25, Gavin Henry via curl-library wrote:
> If I do the usual, then all is good: > > headers = curl_slist_append(headers, "Authorization: Bearer >
xxxxxx"); > Yes, that just forces it!
> I must be missing setting another curl_easy_setopt... >
In the absence of your code listing and lack of additional info, I can
only try to guess...
- Protocol is http(s)
. You do not set CURLOPT_HTTPAUTH
(https://curl.se/libcurl/c/CURLOPT_HTTPAUTH.html). This is probably what
you need.
-- Unsubscribe: https://lists.haxx.se/listinfo/curl-library Etiquette: https://curl.se/mail/etiquette.htmlReceived on 2023-02-21