WCF REST list HTTP headers on incoming request -


I have removed the WCF REST starter kit and am trying to access the HTTP header on incoming request. I have looked at OperationContacts. Present. It does not catch them either on incoming message heads or I am reaching it wrongly.

How do I list HTTP headers?

Finally got the answer.

  using System.ServiceModel.Web; Protected Override IEnumerable & lt; KeyValuePair & lt; String, Sampling & gt; & Gt; OnGetItems () {WebHeaderCollection Header = WebOperationContext.Current.IncomingRequest.Headers; Foreign currency (string key in header) {logger. Debug ("Header" + Key + "=" + Header [Key]); }}  

Comments

Popular posts from this blog

MySql variables and php -

url rewriting - How to implement the returnurl like SO in PHP? -

Which Python client library should I use for CouchdB? -