如何从URL获取ASP.NET用户名称和密码? https://myUser:myPassword@myServer/ HttpContext.Current.Request.Url 返回的是 https://myServer/。
您需要访问身份验证头。关于HTTP身份验证的信息: http://en.wikipedia.org/wiki/Basic_access_authentication 在ASP.NET中实现它: http://blog.smithfamily.dk/2008/08/27/ImplementingBasicAuthenticationInASPNET20.aspx