Re: 2nd inquiry: how to - programmatically - authenticate oneself as Tomcat manager?

2004-06-10 Thread Jacob Kjome
Quoting Bill Barker [EMAIL PROTECTED]: 1) Assuming boring system encodings, and something to do Base64 encoding: String creds = username+:+password; String b64creds = Base64Util.encode(creds.getBytes()); tmc.addRequestProperty(Authorization,Basic +b64creds); 2) Not with Basic.

Works! RE: 2nd inquiry: how to - programmatically - authenticate oneself as Tomcat manager?

2004-06-10 Thread Jerry Miernik
to - programmatically - authenticate oneself as Tomcat manager? Quoting Bill Barker [EMAIL PROTECTED]: 1) Assuming boring system encodings, and something to do Base64 encoding: String creds = username+:+password; String b64creds = Base64Util.encode(creds.getBytes()); tmc.addRequestProperty

RE: Works! RE: 2nd inquiry: how to - programmatically - authenticate oneself as Tomcat manager?

2004-06-10 Thread Shapira, Yoav
Users List Subject: Re: 2nd inquiry: how to - programmatically - authenticate oneself as Tomcat manager? Quoting Bill Barker [EMAIL PROTECTED]: 1) Assuming boring system encodings, and something to do Base64 encoding: String creds = username+:+password; String b64creds

Re: Works! RE: 2nd inquiry: how to - programmatically - authenticate oneself as Tomcat manager?

2004-06-10 Thread Hassan Schroeder
Jerry Miernik wrote: This works! How did you come to know that? Is there a doc I should have read to know? Well, strictly speaking, if you read the doc you'll know that's not a legal URL :-) RFC 1738: Uniform Resource Locators (URL) shows the format: 3.1. Common Internet Scheme Syntax

Re: Works! RE: 2nd inquiry: how to - programmatically - authenticate oneself as Tomcat manager?

2004-06-10 Thread Jacob Kjome
At 12:25 PM 6/10/2004 -0700, you wrote: Jerry Miernik wrote: This works! How did you come to know that? Is there a doc I should have read to know? Well, strictly speaking, if you read the doc you'll know that's not a legal URL :-) Yep, but it has worked with every server I've ever used it

2nd inquiry: how to - programmatically - authenticate oneself as Tomcat manager?

2004-06-09 Thread Jerry Miernik
The question is related to undeploying a webapplication from a Java code. A connection to tomcat manager using URL tomcatMgr = new URL(http://localhost:8080/manager/undeploy?path=/any;); URLConnection tmc = tomcatMgr.openConnection(); results in:

Re: 2nd inquiry: how to - programmatically - authenticate oneself as Tomcat manager?

2004-06-09 Thread Bill Barker
1) Assuming boring system encodings, and something to do Base64 encoding: String creds = username+:+password; String b64creds = Base64Util.encode(creds.getBytes()); tmc.addRequestProperty(Authorization,Basic +b64creds); 2) Not with Basic. You might be able to rig something with Form.