-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi Devs,
I was able to get Basic Authentication working on the client side with
the aid of your documentation. It's great. When i use ANY, i was able to
see Authorization: Basic [some base64]} the http header via TCP monitor.
My Question : Is there any API available in httpclient, that gives me
the opportunity to Extract the Authorization header and decode the
base64 text to get plain password and username in server side.
Scenario:
In my servlet, i have access to *HttpServletRequest*
say using following,
HashMap headerMap = new HashMap();
Enumeration e = request.getAttributeNames();
while (e.hasMoreElements()) {
String field = (String) e.nextElement();
headerMap.put(field, request.getAttribute(field));
}
i fill the headerMap. If Authorization header is avialable, *headerMap*
will contain it.
So if httpclient contains an API to extract the username and password
using authorization header that would be really handy.
Please be kind enough to help me on this.
Thank you
Saminda
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org
iD8DBQFEmlmxYmklbLuW6wYRAlceAJ0fjiWlraYLHXrdFutv0g6DmuiFFgCdFMAi
zbwW8W0a/FieCNe0W6qtl7Y=
=OSGE
-----END PGP SIGNATURE-----
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]