version 1.7, 2002/02/28 23:06:44
|
version 1.8, 2002/03/04 19:56:08
|
|
|
//ATTN: the number of challenges get sent for a | //ATTN: the number of challenges get sent for a |
// request on a connection can be pre-set. | // request on a connection can be pre-set. |
| |
String authChallenge = String::EMPTY; |
|
|
|
String authResp = | String authResp = |
_authenticationManager->getHttpAuthResponseHeader(); | _authenticationManager->getHttpAuthResponseHeader(); |
| |
// |
if (!String::equal(authResp, String::EMPTY)) |
// Set the challenge string in the Authentication Info |
{ |
// object that was sent with the HTTPMessage |
|
// |
|
httpMessage->authInfo->setAuthChallenge(authChallenge); |
|
|
|
_sendChallenge(queueId, authResp); | _sendChallenge(queueId, authResp); |
|
} |
|
else |
|
{ |
|
_sendError(queueId, "Invalid Request"); |
|
} |
| |
return; | return; |
} | } |
|
|
} | } |
else | else |
{ | { |
//String authChallenge; |
|
|
|
String authResp = | String authResp = |
_authenticationManager->getHttpAuthResponseHeader(); | _authenticationManager->getHttpAuthResponseHeader(); |
| |
// |
if (!String::equal(authResp, String::EMPTY)) |
// Set the challenge string in the Authentication Info |
{ |
// object that was sent with the HTTPMessage |
|
// |
|
//ATTN: check this out later.. |
|
//httpMessage->authInfo->setAuthChallenge(authChallenge); |
|
|
|
_sendChallenge(queueId, authResp); | _sendChallenge(queueId, authResp); |
|
|
} | } |
|
else |
|
{ |
|
_sendError(queueId, "Invalid Request"); |
|
} |
|
} |
} | } |
} | } |
| |