Compare commits

...

1 Commits

Author SHA1 Message Date
macintoshplus
fefb6a2f66 disable dump http request 2024-11-15 22:45:31 +01:00

View File

@@ -143,19 +143,16 @@ retry:
$token = getenv('API_TOKEN');
if (!empty($token)) {
echo "**** define authorization header ! ****\n";
var_dump(curl_setopt($ch, CURLOPT_HTTPHEADER, ['Accept: text/plain','X-custom-header: top1','Authorization: Bearer '.$token]));
curl_setopt($ch, CURLOPT_HTTPHEADER, ['Accept: text/plain','X-custom-header: top1','Authorization: Bearer '.$token]);
}
curl_setopt($ch, CURLOPT_USERAGENT, Config::getSdkUserAgentName());
echo "curl_error=". curl_error($ch) ."\n";
// workaround for <https://github.com/microsoft/php-sdk-binary-tools/issues/69>
curl_setopt($ch, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1);
$ret = curl_exec($ch);
var_dump($ret);
$code = curl_getinfo($ch, CURLINFO_HTTP_CODE);
if (false === $ret || 200 !== $code) {