【发布时间】:2010-11-25 16:38:57
【问题描述】:
喂
我有一个 html 表单,在向 url 发布请求时,我还想使用 basic-auth 传递凭据
任何人都可以分享一个关于如何做到这一点的代码示例吗?
【问题讨论】:
标签: html http authentication
喂
我有一个 html 表单,在向 url 发布请求时,我还想使用 basic-auth 传递凭据
任何人都可以分享一个关于如何做到这一点的代码示例吗?
【问题讨论】:
标签: html http authentication
您可以将表单的 action 属性的 url 设置为
http://username:password@www.yourserver.com/somewebpage.html
但我认为这不适用于 Internet Explorer。有一些垃圾邮件发送者滥用此功能,Microsoft 将其禁用。
【讨论】: