以html格式传递身份验证信息

时间:2009-09-04 16:02:27

标签: html http authentication

HIE

我有一个html表单,在向网址发布请求时,我也希望使用basic-auth传递crendtials

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

1 个答案:

答案 0 :(得分:0)

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

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

但我不认为这适用于Internet Explorer。有些垃圾邮件发送者滥用此功能,微软禁用了它。

相关问题