Hey ,
I want to use http authentication for image charts .. For that i have referred the documentation and created a php file as follows:
<?php
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, 'http://tracker5/mydbr/report.php?r=39&m=1&h=8ca399a0212071c71840ff61b183e8e8e62243ba&i=1&hdr=0');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_HTTPAUTH, CURLAUTH_BASIC);
curl_setopt($ch, CURLOPT_USERPWD, 'dba:dba');
curl_setopt($ch, CURLOPT_HTTPHEADER, array('X-MYDBR-AUTH: 1'));
$data = curl_exec($ch);
curl_close($ch);
echo $data;
?>
Separately the report is showing charts but when i run this curl script it displays nothing .. However , curl 7.24.0 is enabled. Whats the issue?
Secondly, i want to use this script for Active Directory. So how can i use HTTP basic Authentication for Active Directory .. Instead of 'dba'as username , it should check Active Directory logged in user..
Kindly help.