Jason,
Correct! The source for 8.2 is different from that in the book.
The two lines
<snip>
res.setHeader("WWW-Authenticate", "BASIC realm=\"users\"");
res.sendError(res.SC_UNAUTHORIZED);
</snip>
need to be in this order for the code to work in IE, and this is the order
they're in on the website. In the book they are in reverse order.
Thanks for your help, its much appreciated.
Cheers
Bruce
----- Original Message -----
From: Jason Hunter <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, March 06, 2000 4:17 AM
Subject: Re: Hunter 8.2 example and cross browser problems
> Bruce Scharlau wrote:
> >
> > Hello all,
> >
> > I'm trying to get my head around servlet authentication with
> > Jason's 8.2 example, and find, like someone the other day, that
> > it doesn't seem to work
> > in IE , but will in Netscape.
> > Does anyone know of a work around to get it working in IE?,
> > or is this just another example of MS
> > going it alone and changing standards?
>
> My guess is you typed in the code instead of downloading it from
> Servlets.com. I think there was some header ordering issue with some
> IE browers that is fixed with the code on the web site.
>
> -jh-
>
> --
> Jason Hunter
> [EMAIL PROTECTED]
> Book: http://www.servlets.com/book
> 2.0 to 2.1: http://www.javaworld.com/jw-12-1998/jw-12-servletapi.html
> 2.1 to 2.2: http://www.javaworld.com/jw-10-1999/jw-10-servletapi.html
>
>
___________________________________________________________________________
> To unsubscribe, send email to [EMAIL PROTECTED] and include in the
body
> of the message "signoff SERVLET-INTEREST".
>
> Archives: http://archives.java.sun.com/archives/servlet-interest.html
> Resources: http://java.sun.com/products/servlet/external-resources.html
> LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
>
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html