zoukankan      html  css  js  c++  java
  • ASP.NET中关于路径的实例说明

    在有虚拟目录的情况下是这样的:

    HttpContext.Current.Request.ServerVariables["HTTPS"]= 
    HttpContext.Current.Request.ServerVariables["Server_Name"]=localhost 
    HttpContext.Current.Request.ServerVariables["SERVER_PORT"]=4911 
    HttpContext.Current.Request.ApplicationPath=/FSEWES.WEB 
    HttpContext.Current.Request.Pat=/FSEWES.WEB/Default3.aspx 
    HttpContext.Current.Request.PathInfo= 
    HttpContext.Current.Request.PhysicalApplicationPath=E:\application\Project\EWES\src\FSEWES.WEB\ 
    HttpContext.Current.Request.PhysicalPath=E:\application\Project\EWES\src\FSEWES.WEB\Default3.aspx 
    HttpContext.Current.Request.RawUrl=/FSEWES.WEB/Default3.aspx 
    HttpContext.Current.Request.Url=http://localhost:4911/FSEWES.WEB/Default3.aspx
    在站点下面则是这样的:
    HttpContext.Current.Request.ServerVariables["HTTPS"]=off 
    HttpContext.Current.Request.ServerVariables["Server_Name"]=localhost 
    HttpContext.Current.Request.ServerVariables["SERVER_PORT"]=80
    HttpContext.Current.Request.ApplicationPath=/
    HttpContext.Current.Request.Pat=/Default3.aspx 
    HttpContext.Current.Request.PathInfo= 
    HttpContext.Current.Request.PhysicalApplicationPath=E:\application\Project\EWES\src\FSEWES.WEB\ 
    HttpContext.Current.Request.PhysicalPath=E:\application\Project\EWES\src\FSEWES.WEB\Default3.aspx 
    HttpContext.Current.Request.RawUrl=/Default3.aspx 
    HttpContext.Current.Request.Url=http://localhost:4911/Default3.aspx
  • 相关阅读:
    DIY树莓派之随身工具箱
    经验分享 | Burpsuite抓取非HTTP流量
    版本控制工具:SVN和Maven的区别
    Dicom Conformance
    从Script到Code Blocks、Code Behind到MVC、MVP、MVVM
    MVC,MVP 和 MVVM 的图示
    DB2 触发器的写法及表主键结构的修改
    数据表增加列的时候赋默认值
    Mysql数据库乱码总结
    又在字符集上浪费时间
  • 原文地址:https://www.cnblogs.com/xoray007/p/1739674.html
Copyright © 2011-2022 走看看