开发者

Determine HTTP Protocol Version in ASHX Handler

开发者 https://www.devze.com 2023-01-16 20:22 出处:网络
Is it possible to det开发者_如何学JAVAermine 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 Re

Is it possible to det开发者_如何学JAVAermine 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?


try Request.ServerVariables["SERVER_PROTOCOL"]

0

精彩评论

暂无评论...
验证码 换一张
取 消