Adding HTTP request header to WCF request
问题 I have a WCF service consume by both AJAX and C# application, I need to send a parameter through the HTTP request header. On my AJAX I have added the following and it works: $.ajax({ type: "POST", url: this.tenantAdminService, beforeSend: function (req, methodName) { req.setRequestHeader("AdminGUID", adminGuid); } and on the WCF server side I do the following to Get the header: string adminGUID = System.Web.HttpContext.Current.Request.Headers["AdminGUID"]; What is the C# equivalent? How can I