Can I pass custom data in the HTTP header?

前端 未结 7 1178
醉梦人生
醉梦人生 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 17:59

    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.

提交回复
热议问题