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

  • 相关阅读:
    楔入式侧链原理
    侧链带来的问题
    侧链的应用方向
    node.js 读取yaml文件
    用Visual Studio Code写Node.js
    Express中server和路由分离
    Nodejs开发框架Express4.x开发手记
    node.js express使用websocket
    Nodejs 发送HTTP POST请求实例
    rabbitMQ消息队列原理
  • 原文地址:https://www.cnblogs.com/dachie/p/1768827.html
Copyright © 2011-2022 走看看