我有一个自定义的sharepoint应用程序,其安全模型取决于HTTP头。 当从移动设备发出请求时,会向每个请求添加名为HTTP_RIM_DEVICE_EMAIL的http标头。 我通过以下方法抢http头:Sharepoint剥离HTTP头
private static string GetValueFromHeader(string headerName)
{
HttpRequest Request = HttpContext.Current.Request;
string returnValue = string.Empty;
try
{
string[] val = Request.ServerVariables.GetValues(headerName);
if (val.Length > 0)
returnValue = val[0];
}
catch (Exception ex)
{
Console.WriteLine(ex.ToString());
}
return returnValue;
}
我通过在“HTTP RIM设备的电子邮件”和它的返回空。我在同一台服务器上有一个常规的asp.net 2.0站点,当我通过黑莓向它发出请求时,我会看到标题,但不是在请求SharePoint站点时。
有没有办法阻止共享点剥离我需要的http头?