通过 HTTP 响应传递 UN 和 PW

发布于 2024-08-16 09:53:52 字数 179 浏览 6 评论 0原文

我想知道是否可以将用户重定向到需要用户名和密码的网页,例如 IIS 验证网站所需的用户名和密码,并通过 UN 和 PW 自动发送,例如 -

Response.Username = "";

Response.Password  = "";

Response.Redirect("url");

I was wondering if its possible to redirect a user to a web page that required a username and password such as the one you would require for an IIS authenticated web site and automatically send through the UN and PW, eg -

Response.Username = "";

Response.Password  = "";

Response.Redirect("url");

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

女中豪杰 2024-08-23 09:53:52

我认为在默认提供的任何身份验证表单下这是不可能的。这也不适用于跨域。

I do not believe this is possible under any of the authentication forms provided by default. This would not work across domains either.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文