How to dump ASP.NET Request headers to string

前端 未结 4 653
暗喜
暗喜 2020-12-08 03:39

I\'d like to email myself a quick dump of a GET request\'s headers for debugging. I used to be able to do this in classic ASP simply with the Request object, but Reque

4条回答
  •  生来不讨喜
    2020-12-08 04:33

    You can get all headers as string() in one shot, using this (VB.Net)

    Request.Headers.ToString.Split(New String() {vbCrLf}, StringSplitOptions.RemoveEmptyEntries)
    

提交回复
热议问题