tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andrea Tomasini <>
Subject RE: Basic Authentication with IE don't WORK...
Date Fri, 21 Apr 2000 07:59:01 GMT
> Could you help us by describing exactly the symptoms you see? 
OK Man,
 the symptoms are really simple, the "WWW-Authenticate" header are not send
back correctly to the client, so IE hangs on waiting response from the
server and Netscape raise-up the authentication login window, reporting that
the Authentication type is "UNKNOWN" and it's coming from a Bad Realm...
Opera Browser report that it can handle request because the Authentication
method is not yet supported...

These are HEADERS I set in my Authentication Servlet according to RFC:

response.setHeader("WWW-Authenticate", "BASIC REALM=\"" + m_authRealm +

And this is the HEADERS I get from the server when connecting to the
servlet, using Perl-libwww :-)

401 Unauthorized
Date: Fri, 21 Apr 2000 07:53:52 GMT
WWW-Authenticate: Basic "default"
Content-Language: en
Content-Type: text/plain
Client-Date: Fri, 21 Apr 2000 07:51:37 GMT
Client-Peer: ^MY_PEER_OK!^
Servlet-Engine: Tomcat Web Server/3.1 Beta (JSP 1.1; Servlet 2.2; Java
1.2.2; Windows NT 4.0 x86;
java.vendor=Sun Microsystems Inc.)
Set-Cookie: JSESSIONID=To1036mC4148290271476982At;Path=^MY_PATH_OK!^
Status: 401

Notice that even Perl threats headers Authenticate and set Realm to

I hope this it's enough :-)


> PS:  This discussion is more appropriate on the TOMCAT-USER 
> mailing list
> because it has been, or undoubtedly will be, encountered by 
> other users as
> well.
I think it's a developers task to solve this problem :-)

View raw message