Compare commits

..

2 Commits

Author SHA1 Message Date
Jean-Baptiste Nahan
bdec9f92b9 add var_dump on set headers 2024-11-13 10:35:41 +01:00
Jean-Baptiste Nahan
154b63fb2e add log for http call 2024-11-13 09:11:12 +01:00

View File

@@ -122,6 +122,8 @@ trait FileOps
retry:
$ch = curl_init();
echo "CALL $url \n";
curl_setopt($ch, CURLOPT_URL, $url);
if ($dest_fn) {
@@ -141,7 +143,7 @@ retry:
$token = getenv('API_TOKEN');
if (!empty($token)) {
echo "**** define authorization header ! ****\n";
curl_setopt($ch, CURLOPT_HTTPHEADER, ['x-custom-header: top1','Authorization: Bearer '.$token]);
var_dump(curl_setopt($ch, CURLOPT_HTTPHEADER, ['x-custom-header: top1','Authorization: Bearer '.$token]));
}
// workaround for <https://github.com/microsoft/php-sdk-binary-tools/issues/69>