【问题标题】:passing authentication info in html form以 html 形式传递身份验证信息
【发布时间】:2010-11-25 16:38:57
【问题描述】:

我有一个 html 表单,在向 url 发布请求时,我还想使用 basic-auth 传递凭据

任何人都可以分享一个关于如何做到这一点的代码示例吗?

【问题讨论】:

    标签: html http authentication


    【解决方案1】:

    您可以将表单的 action 属性的 url 设置为

    http://username:password@www.yourserver.com/somewebpage.html
    

    但我认为这不适用于 Internet Explorer。有一些垃圾邮件发送者滥用此功能,Microsoft 将其禁用。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2016-12-02
      • 1970-01-01
      • 2023-03-16
      • 2020-12-04
      • 1970-01-01
      相关资源
      最近更新 更多