1

How can I access header values from a web method in WCF Web API?

Despertar
  • 21,627
  • 11
  • 81
  • 79
Venkateswararao
  • 343
  • 1
  • 5
  • 19

1 Answers1

2

You can try something like this:

(using System.Web;)

HttpUtility.UrlDecode(HttpContext.Current.Request.Headers["myValue"]);
Despertar
  • 21,627
  • 11
  • 81
  • 79
Charl
  • 144
  • 8