This can be accomplished by using a null realm. Please take a look at the HttpState docs <http://jakarta.apache.org/commons/httpclient/apidocs/org/apache/ commons/httpclient/HttpState.html> for some more detail.
Mike
On Dec 7, 2003, at 3:16 PM, David Webb wrote:
I am trying to use HTTPClient to connect to a WebServer that is protected by
Siteminder. The problem that I am having is that the Realm for the basic
authentication is dynamic based on the system time (to prevent users from using
the "Remember my password" option in a Browser). This prevents me from setting
the Realm name before I execute the GetMethod. After I execute the GetMehtod,
I can get the Realm Name for the Basic Auth from the ResponseHeader (WWW-
authenticate). After that, how do I set the Realm and retry the request?
I have tried the scenario where I set the Realm, Recycle the Get and reset the
Path and execute again, but the Realm changes after I recycle the Get.
Can I tell HttpClient to use the username and password that I have provided
regardless of the Realm?
All and any help is greatly appreciated. Thanks.
PS:
I am unable to change the configuration for the Siteminder server so that can
not be an option.
Thanks.
-- Sincerely, David Webb Vice-President Hurff-Webb, Inc. http://www.hurff-webb.com (904) 861-2366 (904) 534-8294 Mobile
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]