Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个网址。当我通过浏览器访问它时,会出现一个弹出窗口并询问用户名和密码,并通过提供正确的凭据打开页面。我想知道如何通过传递用户名和密码 url 本身来避免弹出窗口以及如何做到这一点
注意我的用户名包含@符号
多谢
您可以使用以下表格:
http://<user>:<pass>@<host>:<port>/<path>
它甚至可以与用户名中的 @ 一起使用(IE 可能不支持这一点)。