
Raymond Dijk - 2007-07-15 18:53:23
Hello,
I have a problem with a basic authentication on a site using test_http.php.
When I try to connect to the site using the test_http.php file it connects good. I am getting back a status=200 message and I can print the responce body via the HtmlSpecialChars function. So far so good.
$error=$http->ReadReplyBody($body,1000);
if($error!="" || strlen($body)==0)
break;
echo HtmlSpecialChars($body);
//print $body;
But when I would print the responce body directly to the screen the basic authentication doesn't stay alive. It promts its login message box.
$error=$http->ReadReplyBody($body,1000);
if($error!="" || strlen($body)==0)
break;
//echo HtmlSpecialChars($body);
print $body;
Does any one know how I can achieve a connection that stays alive with the authenticaton credentials.
Kind regards,
Raymond Dijk