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>");

  • 相关阅读:
    2015多校1006.First One
    2015多校.MZL's endless loop(欧拉回路的机智应用 || 构造)
    LUXURY 8
    矩阵快速幂模板
    博弈入门
    cf558c(bfs)
    LUXURY 7
    dfs序 + RMQ = LCA
    双端队列
    UVa-401 Palindromes
  • 原文地址:https://www.cnblogs.com/dachie/p/1768827.html
Copyright © 2011-2022 走看看