commit 4a775c6baacd14ce143155a063b0d3ba45a26f9e
parent 390cd808eed0ee081606144bad762ef28ed89c0e
Author: Christian Grothoff <christian@grothoff.org>
Date: Thu, 2 Nov 2023 16:22:50 +0100
/setup is a POST
Diffstat:
1 file changed, 16 insertions(+), 0 deletions(-)
diff --git a/src/kyclogic/plugin_kyclogic_oauth2.c b/src/kyclogic/plugin_kyclogic_oauth2.c
@@ -695,6 +695,22 @@ initiate_task (void *cls)
curl_easy_setopt (eh,
CURLOPT_URL,
pd->setup_url));
+ GNUNET_assert (CURLE_OK ==
+ curl_easy_setopt (eh,
+ CURLOPT_POST,
+ 1));
+ GNUNET_assert (CURLE_OK ==
+ curl_easy_setopt (eh,
+ CURLOPT_POSTFIELDS,
+ ""));
+ GNUNET_assert (CURLE_OK ==
+ curl_easy_setopt (eh,
+ CURLOPT_FOLLOWLOCATION,
+ 1L));
+ GNUNET_assert (CURLE_OK ==
+ curl_easy_setopt (eh,
+ CURLOPT_MAXREDIRS,
+ 5L));
GNUNET_asprintf (&hdr,
"%s: Bearer %s",
MHD_HTTP_HEADER_AUTHORIZATION,