Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / April 2006

Tip: Looking for answers? Try searching our database.

How to auto-login to a protected directory

Thread view: 
laredotornado@zipmail.com - 27 Apr 2006 13:59 GMT
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



Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.