I need to create a POST method in WebApi so I can send data from application to WebApi method. I\'m not able to get header value.
Here I have added header values in
For .NET Core:
string Token = Request.Headers["Custom"];
Or
var re = Request; var headers = re.Headers; string token = string.Empty; StringValues x = default(StringValues); if (headers.ContainsKey("Custom")) { var m = headers.TryGetValue("Custom", out x); }