Can I pass custom data in the HTTP header?

前端 未结 7 1789
北海茫月
北海茫月 2021-02-12 17:14

I have a whole bunch of web services each with several web methods. The consumers of these services are varied and many. I want to augment each of these web methods with an extr

7条回答
  •  北荒
    北荒 (楼主)
    2021-02-12 18:03

    You can, but you have to define a Header, then set its value. Like in the HttpWebRequest you can add any header, as long as its not one of the reserved ones.

提交回复
热议问题