摘要: 环境:本地测试用的http协议,部署到生产环境的协议是https用Response.Redirt跳转页面的时候会发生两种协议之间跳转的问题。为了解决这个问题我想到首先获得访问页面是使用上面两个协议的哪一种获取协议方法 protected string CheckHttps() { int loop1; string result = ""; NameValueCollection coll = Request.ServerVariables; string[] arr1 = coll.AllKeys; for (lo... 阅读全文