Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » Tomcat Users »

Re: Manager app and HttpURLConnection

Jacob Kjome

2003-06-02

Replies:


Take a look at the source for the Tomcat Ant manager tasks. They should
provide code you can reuse.

Jake

At 04:15 PM 6/2/2003 +0200, you wrote:
>Thanks Tim,
>
>This is why I assumed that
>http://user:pass@(protected)
>when called from a browser window. Does anyone know of any other way of
>calling this url with credentials? I'm trying to get the Servlet to reload
>itself every time it runs. (For research purposes :) )
>
>Thanks
>
>Dom
>  ----- Original Message -----
>  From: Tim Funk
>  To: Tomcat Users List
>  Sent: Monday, June 02, 2003 1:43 PM
>  Subject: Re: Manager app and HttpURLConnection
>
>
>  That is because the manager servlet is protected. A 401 response code is a
>  challenge back to the client and the client needs to resend a new request
>  with the Header: WWW-Authenticate with the userid and password. More
> information:
>  http://www.cis.ohio-state.edu/cgi-bin/rfc/rfc2068.html#sec-10.4.2
>
>  -Tim
>
>  ---------------------------------------------------------------------
>  To unsubscribe, e-mail: tomcat-user-unsubscribe@(protected)
>  For additional commands, e-mail: tomcat-user-help@(protected)
©2008 junlu.com - Jax Systems, LLC, U.S.A.