Re: servlet authentication

2002-07-02 Thread Michael Bergknoff
Looks like you're right. Thanks, Mike >From: Kevin Seguin >Subject: RE: servlet authentication >Date: Tue, 02 Jul 2002 02:39:06 -0700 > >i could be wrong, but i think once you call sendError(), the response is committed and >you cannot set any more headers. try rev

RE: servlet authentication

2002-07-02 Thread Kevin Seguin
i could be wrong, but i think once you call sendError(), the response is committed and you cannot set any more headers. try reversing the order of the sendError()/setHeader() calls: response.setHeader("WWW-Authenticate", "BASIC realm=\"test\""); response.sendError(response.SC_UNAUTHORIZED);