zoukankan      html  css  js  c++  java
  • Request.RawUrl属性,和其它获取url信息的各种方法比较

    Request的RawUrl属性,和其它获取url信息的各种方法比较

    测试的url地址是http://www.cnblogs.com/dachie/default.aspx?id=1, 结果如下:
    Request.ApplicationPath: /dachie
    Request.CurrentExecutionFilePath: /dachie/default.aspx
    Request.FilePath: /dachie/default.aspx
    Request.Path: /dachie/default.aspx
    Request.PathInfo:
    Request.PhysicalApplicationPath: E:\WWW\testweb\
    Request.PhysicalPath: E:\WWW\dachie\default.aspx
    Request.RawUrl: /dachie/default.aspx?id=1
    Request.Url.AbsolutePath: /dachie/default.aspx
    Request.Url.AbsoluteUri: http://www.cnblogs.com/dachie/default.aspx?id=1
    Request.Url.Host: www.cnblogs.com
    Request.Url.LocalPath: /dachie/default.aspx
    Response.Write("<b>Request.ApplicationPath:</b> " + Request.ApplicationPath + "<br>");
    Response.Write("<b>Request.CurrentExecutionFilePath:</b> " + Request.CurrentExecutionFilePath + "<br>");
    Response.Write("<b>Request.FilePath:</b> " + Request.FilePath + "<br>");
    Response.Write("<b>Request.Path:</b> " + Request.Path + "<br>");
    Response.Write("<b>Request.PathInfo:</b> " + Request.PathInfo + "<br>");
    Response.Write("<b>Request.PhysicalApplicationPath:</b> " + Request.PhysicalApplicationPath + "<br>");
    Response.Write("<b>Request.PhysicalPath:</b> " + Request.PhysicalPath + "<br>");
    Response.Write("<b>Request.RawUrl:</b> " + Request.RawUrl + "<br>");
    Response.Write("<b>Request.Url.AbsolutePath:</b> " + Request.Url.AbsolutePath + "<br>");
    Response.Write("<b>Request.Url.AbsoluteUri:</b> " + Request.Url.AbsoluteUri + "<br>");
    Response.Write("<b>Request.Url.Host:</b> " + Request.Url.Host + "<br>");
    Response.Write("<b>Request.Url.LocalPath:</b> " + Request.Url.LocalPath + "<br>");

  • 相关阅读:
    《大话设计模式》读书笔记
    设计模式个人笔记
    多线程的单元测试工具
    设计模式六大原则
    时间复杂度和空间复杂度(转)
    排序算法笔记
    《人月神话》读书笔记
    微信公众号开发踩坑记录(二)
    微信公众号开发踩坑记录
    全栈工程师之路
  • 原文地址:https://www.cnblogs.com/dachie/p/1768827.html
Copyright © 2011-2022 走看看