From a7825b75345697afe4cd9de2ed7204c4f28c1a51 Mon Sep 17 00:00:00 2001 From: Sergej Naumenko Date: Wed, 8 Apr 2020 17:26:42 +0200 Subject: [PATCH] curl option - header --- php_sample_client/sample_download_license.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/php_sample_client/sample_download_license.php b/php_sample_client/sample_download_license.php index 5494a7f..fb53002 100644 --- a/php_sample_client/sample_download_license.php +++ b/php_sample_client/sample_download_license.php @@ -26,7 +26,7 @@ $process = curl_init($host); curl_setopt($process, CURLOPT_HTTPHEADER, array( 'Accept: application/json' )); -curl_setopt($process, CURLOPT_HEADER, 1); +curl_setopt($process, CURLOPT_HEADER, 0); curl_setopt($process, CURLOPT_USERPWD, $username . ":" . $password); curl_setopt($process, CURLOPT_TIMEOUT, 30); curl_setopt($process, CURLOPT_POST, 1); -- GitLab