Http Basic Authenticate


这是HTTP协议中的Basic Authentication

客户端向服务器发起普通HTTP请求

  • 服务器返回HTTP 401错误,并在response里面带上一行头信息 WWW-Authenticate: Basic realm=”领域说明文本”

  • 客户端弹出对话框,让用户输入用户名密码

  • 客户端重新向服务器发起请求,request里面带上一行头信息,内容是 Authorization: Basic

转载自:https://blog.csdn.net/gdp12315_gu/article/details/82689722

You may also like...

退出移动版