HttpContext.Current.Request.ServerVariables
-
Hi, We're using asp.net 2.0, c#, and writing keys from HttpContext.Current.Request.ServerVariables to a log file. We're writing all keys except ALL_HTTP*, ALL_RAW*, VSDEBUGGER*, SERVER_*, HTTPS_*, CERT_*. Very often HttpContext.Current.Request.ServerVariables seem to have no values, and nothing gets written to the log. Under which circumstances are HttpContext.Current.Request.ServerVariables null or empty? Mostly, we need info about PATH_INFO, PATH_TRANSLATED, URL. Is there another way to get these so that we always have this info? HttpContext.Current.Request.ServerVariables does not always have this info. Thanks. Shefali
-
Hi, We're using asp.net 2.0, c#, and writing keys from HttpContext.Current.Request.ServerVariables to a log file. We're writing all keys except ALL_HTTP*, ALL_RAW*, VSDEBUGGER*, SERVER_*, HTTPS_*, CERT_*. Very often HttpContext.Current.Request.ServerVariables seem to have no values, and nothing gets written to the log. Under which circumstances are HttpContext.Current.Request.ServerVariables null or empty? Mostly, we need info about PATH_INFO, PATH_TRANSLATED, URL. Is there another way to get these so that we always have this info? HttpContext.Current.Request.ServerVariables does not always have this info. Thanks. Shefali