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 with.

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 While

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

2004-06-10 Thread Shapira, Yoav
rks! RE: 2nd inquiry: how to - programmatically - authenticate >oneself as Tomcat manager? > > Jake, > This works! How did you come to know that? > Is there a doc I should have read to know? > Thanks, > Jerry. > > >-Original Message- >From: Jacob Kjome [mail

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

2004-06-10 Thread Jerry Miernik
- 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()); &g

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 w

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 Fo

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: java.io.IOExcepti

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: java.io.IOExcepti