Commit a7825b75 authored by Sergej Naumenko's avatar Sergej Naumenko

curl option - header

parent 9abd19ff
...@@ -26,7 +26,7 @@ $process = curl_init($host); ...@@ -26,7 +26,7 @@ $process = curl_init($host);
curl_setopt($process, CURLOPT_HTTPHEADER, array( curl_setopt($process, CURLOPT_HTTPHEADER, array(
'Accept: application/json' '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_USERPWD, $username . ":" . $password);
curl_setopt($process, CURLOPT_TIMEOUT, 30); curl_setopt($process, CURLOPT_TIMEOUT, 30);
curl_setopt($process, CURLOPT_POST, 1); curl_setopt($process, CURLOPT_POST, 1);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment