Hello,
Does anyone have some Java code to auto-log someone in to a protected
directory -- the one where a gray box comes up prompting for a username
and password? I know the URL, username, and password that I can pass
as parameters to such a script. I am going to deploy this code in a
JSP.
I am using JVM 1.3 on Solaris.
Thanks in advance, - Dave
josh.s17@gmail.com - 27 Apr 2006 21:52 GMT
If what you are talking about is basic authentication from a website
then this is an example using Jakarta commons httpclient
http://svn.apache.org/viewcvs.cgi/jakarta/commons/proper/httpclient/trunk/src/ex
amples/BasicAuthenticationExample.java?rev=155418&view=markup