$ch = curl_init('https://site.com');
curl_setopt($ch, CURLOPT_USERPWD, 'login:password');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
curl_setopt($ch, CURLOPT_HEADER, false);
$html = curl_exec($ch);
curl_close($ch);
echo $html;
/var/log/httpd/error_log.
/etc/php.d/20-xmlwriter.ini
Enable xmlwriter extension module
extension=xmlwriter.so