问题
I'm developping a Java software that should make requests towards URLs over HTTP. Some of these URLs will need HTTP authentication through DIGEST or BASIC.
My client software will only contact these URLs, and if HTTP response is HTTP_OK(200), it will write output into a file.
Q1 : I would like to know what is the quickest and easiest way to test the HTTP authentication DIGEST and BASIC from my client side?
Q2 : Have I to install this kind of server or some "test servers" already exist on the Internet?
Q3 : If I have to install one, does it exist a quick way to install and configure it?
Thanks.
回答1:
Consider this question closed.
I install Tomcat server, create a simple web app and read this following information (documentation in french):
- Tomcat : Memory Based Realm et fichier server/
- Tomcat : Sécuriser l'accès aux ressources
来源:https://stackoverflow.com/questions/9312609/http-authentication-how-to-quickly-test-client-software-through-basic-and-diges