Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. HttpContext.Current.Request.ServerVariables

HttpContext.Current.Request.ServerVariables

Scheduled Pinned Locked Moved ASP.NET
csharpasp-netsysadminquestion
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    shefali_sinha
    wrote on last edited by
    #1

    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

    F 1 Reply Last reply
    0
    • S shefali_sinha

      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

      F Offline
      F Offline
      flash665
      wrote on last edited by
      #2

      try response the value you can see it is null or empty

      I love li li huang , ha ha , but you don't who is she!

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups