[prev in list] [next in list] [prev in thread] [next in thread] 

List:       apache-httpd-users
Subject:    Re: Servlet for authentication of Apache2.0.39
From:       Lee Fellows <lfellows () 4lane ! com>
Date:       2002-06-28 14:42:26
[Download RAW message or body]

On Thu, 2002-06-27 at 22:09, Steve Wong wrote:
>  
>                 This doPost works fine in Apache2.0.36 to pop up an
> authentication window in the browser.
>  
>         public void doPost(HttpServletRequest req, HttpServletResponse
> response)  throws ServletException, IOException {
>                 PrintWriter out = response.getWriter();
>                 HttpSession session = req.getSession(true);
>                 response.setStatus(response.SC_UNAUTHORIZED,"You must
> login!");
>                 response.setHeader("WWW-Authenticate", "BASIC
> realm=\"SSO User A ccount\"");
>                 response.setContentType("text/html");
>                 out.println("<!DOCTYPE html PUBLIC \"-//W3C//DTD HTML
> 4.01 Trans itional//EN\">");
>                 out.println("<html><body><basefont face=Arial>");
>                 out.println("<blockquote><font size=+2><b>Permission
> Denied</b>< /font><hr>");
>                 out.println("Only SSO Users are allow to use this
> site<br>");
>                 out.println("If you have any problem or query, please
> contact th e administrator<br>");
>                 out.println("</body></html>");
>         }
>  
>                 However, after migrate from 2.0.36 to 2.0.39.  The above
> code segment doesn't work.
>  
>                 Does anyone know why?
>  
> Thx. and Regards.
> Steve.
>  
>  

  What does happen?





---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic