tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jason_simon...@us.ibm.com
Subject Java Client and Form-based Authentication
Date Fri, 01 Nov 2002 17:13:45 GMT




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>


Mime
View raw message