tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Kristian Rink <>
Subject Re: servlet and HTTP authentication
Date Mon, 31 Jul 2006 11:14:58 GMT

Hey there;

and, at first, thanks a lot for the hint. schrieb:

> WWW-Authenticate: Basic realm="My Document Management System"
> I'm not sure if tomcat will interpret the resulting "Authorization" header 
> in the next request, given that you asked him not to authenticate, but you 
> can always ask for the contents of that header, strip off the "Basic " 
> from the front, and Base64.decode the rest, yielding userid:password. 
> Split on the ":" and you have your id and password.

Hmmm, I feel stupid right now as I could have thought about that myself.
Thanks for enlightening me, that's pretty much what I needed! :)

Thanks and bye,

Kristian Rink * * jab:
icq: 48874445 *  fon: ++49 176 2447 2771
"Wenn einer allein träumt, ist es nur ein Traum. Wenn viele gemeinsam
träumen, ist das der Anfang einer neuen Wirklichkeit." (Hundertwasser)

To start a new topic, e-mail:
To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message