Re: basic authentication with tomcat 4.1.36

2008-03-19 Thread ram . sriharsha
Hi Chris, I figured out why the code I wrote did not work(had to look into the Authentication class inside Tomcat source code to figure it out!). The reason was when I was setting Request Property for Authentication, I was missing a space setRequestProperty("Authorization","Basic"+Base64.encode(in

Re: basic authentication with tomcat 4.1.36

2008-03-19 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Ram, [EMAIL PROTECTED] wrote: | with authentication turned | on, i receive a HTTP 401 error from the server when i try to undeploy. This is how it's supposed to work. | I am using standard code to access the tomcat manager, and am using basic | aut

basic authentication with tomcat 4.1.36

2008-03-18 Thread ram . sriharsha
Hi, I am trying to undeploy applications from Tomcat 4.1 using basic authentication, by writing a small HTTP client that uses a URL connection to request the Tomcat Manager to undeploy application given the context. Unfortunately, this is not working! If I remove the login-config details associated