I tried to assign the PreSendRequestHeaders Event in the global.asax file in the "Application_Start" method. But this does not work.
private void Application_Start()
{
PreSendRequestHeaders += OnPreSendRequestHeaders;
}
private void OnPreSendRequestHeaders(object sender, EventArgs e)
{
// this is not called
}
The OnPreSendRequestHeaders is not called, why? Is it possible to assign the PreSendRequestHeaders method in the global.asax?