zoukankan      html  css  js  c++  java
  • .NET获取URL的各种方式及其区别

    原文发布时间为:2009-11-11 —— 来源于本人的百度文章 [由搬家工具导入]

    http://www.test.com/testweb/default.aspx?id=1

    Request.ApplicationPath: /testweb

    Request.CurrentExecutionFilePath: /testweb/default.aspx

    Request.FilePath: /testweb/default.aspx

    Request.Path: /testweb/default.aspx

    Request.PathInfo:

    Request.PhysicalApplicationPath: E:WWW estweb

    Request.PhysicalPath: E:WWW estwebdefault.aspx

    Request.RawUrl: /testweb/default.aspx?id=1

    Request.Url.AbsolutePath: /testweb/default.aspx

    Request.Url.AbsoluteUri: http://www.test.com/testweb/default.aspx?id=1

    Request.Url.Host: www.test.com

    Request.Url.LocalPath: /testweb/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>");

  • 相关阅读:
    prometheus 基于文件的目标发现
    prometheus rules
    consul kv使用介绍
    prometheus 标签使用
    prometheus 配置容器 cadvisor监控节点
    prometheus 配置介绍
    Ubuntu 13.10 录音有特别大噪音解决办法
    Ubuntu 13.10 解决虚拟机摄像头无法使用问题
    Ubuntu 13.10 安装软件失败后出现的问题——已安装 post-installation 脚本 返回了错误号 1
    Ubuntu 13.04 VirtualBox在工作区中的切换
  • 原文地址:https://www.cnblogs.com/handboy/p/7158350.html
Copyright © 2011-2022 走看看