Hi,

Is it possible to use a URLConnection to access a servlet that has been
protected using form-based authentication?  I've seen a couple posts here
about this but I haven't been able to get any of the suggested approaches
to work.  Basically I'm wondering if its possible to add the credentials to
the header and if so, what is the exact format - I've already tried:

mConnection.setRequestProperty("Authorization", "Basic " +
b64.encode("username:password"));

Thanks,

jay


--
To unsubscribe, e-mail:   <mailto:tomcat-user-unsubscribe@;jakarta.apache.org>
For additional commands, e-mail: <mailto:tomcat-user-help@;jakarta.apache.org>

Reply via email to