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