How to encode custom HTTP headers in C#

前端 未结 5 824
名媛妹妹
名媛妹妹 2020-12-19 00:45

Is there a class similar to HttpUtility to encode the content of a custom header? Ideally I would like to keep the content readable.

5条回答
  •  粉色の甜心
    2020-12-19 01:05

    sorry its off the top of my head but for your request object there should be a headers object you can add to.

    i.e. request.headers.add("blah");

    Thats not spot on but it should point you in the right direction.

提交回复
热议问题