You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Joseph Carew <jc...@kana.com> on 2000/10/06 15:00:20 UTC

Getting the browser to send Authorization header

Does anyone know how to give the browser an encoded username:password pair,
on a JSP, so it will start passing the Authorization header without going
through the...
 
response.setStatus(SC_UNAUTHORIZED);
response.setHeader("WWW-Authenticate","BASIC realm=\"eBusiness\"");
 
[Dialog box pops user enters data and you check it]
 
...process?  
 
This question has probably been answered a couple of times but I haven't
been able to find an answer in this list's archive or on Deja.
 
Thanks