S
seb
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
dialog box appears.
Thanks
Sebastien
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
dialog box appears.
Thanks
Sebastien