c# - How many custom headers Can I have in a request? -


i wondering if can have custom headers requireds on web api application.

i don't know headers, http protocols , etc. after reading little, thought on required code access application header. so, client app need pass 2 codes on header. approach?

can give kind of names headers? "firstcode" , "safecode"?

when test web api console application this:

var request = new httprequestmessage(); content.headers.tryaddwithoutvalidation("firstcode", "1"); content.headers.tryaddwithoutvalidation("safecode", "2"); message = client.getasync("/auth?code=" + code).result; 

the webapi receives 1 header value of both this: "firstcode:1safecode:2"


Comments

Popular posts from this blog

SPSS keyboard combination alters encoding -

Add new record to the table by click on the button in Microsoft Access -

CSS3 Transition to highlight new elements created in JQuery -