Determine HTTP Protocol Version in ASHX Handler
-
03-10-2019 - |
Question
Is it possible to determine the HTTP protocol version (e.g. 1.0 vs. 1.1) used for a request within a .ashx handler? I can see all of the header information except for the version in Request.Params.
If not, what avenues are available to discover the HTTP protocol version when processing an HTTP request in ASP.Net?
Solution
try Request.ServerVariables["SERVER_PROTOCOL"]
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow