//Analyse 401 header got from server and makes the parameters to
//setCredentials method of nusoap client
function getDigestToServer($url) //Used by client.php script, above
{
//Try to open the URL (read-only) - we are expecting this to fail because it is in the secured area
$fp = @fopen($url, 'r');