Posted By:
Dirk_Behrendt
Posted On:
Thursday, September 4, 2003 08:45 AM
Hello! I want to protect a directory in my Web Application. Protected directory: http://localhost:8080/sample/protected/ I did the necessary things with the tomcat-user.xml and web.xml file. It works fine. If the user wants to access a file in the protected directory, a dialog appears and asks for login and password. With the right login/password the user can access the files in this directory. But what I have to do, if I want to access a file in this directory from a Java program? Naturally a normal access returns a 401 Error code. How can I send login/password from a Java program? I do not want, that a ialog appears. Thanx! Dirk
More>>
Hello!
I want to protect a directory in my Web Application.
Protected directory:
http://localhost:8080/sample/protected/
I did the necessary things with the tomcat-user.xml and web.xml file. It works fine. If the user wants to access a file in the protected directory, a dialog appears and asks for login and password. With the right login/password the user can access the files in this directory.
But what I have to do, if I want to access a file in this directory from a Java program? Naturally a normal access returns a 401 Error code. How can I send login/password from a Java program? I do not want, that a ialog appears.
Thanx!
Dirk
<<Less