HTTP身份验证:如何通过BASIC和DIGEST快速测试客户端软件? [英] HTTP-Authentication: how to quickly test client software through BASIC and DIGEST?

查看:218
本文介绍了HTTP身份验证:如何通过BASIC和DIGEST快速测试客户端软件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在开发Java软件,该软件应通过HTTP向URL发出请求.其中一些网址将需要通过DIGEST或BASIC HTTP身份验证.

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.

我的客户端软件仅会联系这些URL,并且如果HTTP响应为HTTP_OK(200),它将把输出写入文件中.

My client software will only contact these URLs, and if HTTP response is HTTP_OK(200), it will write output into a file.

Q1:我想知道什么是从我的客户端测试HTTP验证DIGEST和BASIC的最快捷,最简单的方法?

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:我是否要在互联网上安装这种服务器或某些测试服务器"?

Q2 : Have I to install this kind of server or some "test servers" already exist on the Internet?

Q3:如果必须安装一个,是否存在快速安装和配置它的方法?

Q3 : If I have to install one, does it exist a quick way to install and configure it?

谢谢.

推荐答案

将此问题视为已解决.

我安装Tomcat服务器,创建一个简单的Web应用程序,并阅读以下信息(法语文档):

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

这篇关于HTTP身份验证:如何通过BASIC和DIGEST快速测试客户端软件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆