Dante
Dante

Reputation: 3891

Accessing custom HTTP Response Header via C#

I've created an HTTP Response Header in IIS 7. I can see it in Fiddler but I can't get its value in C#. Response.Headers.ToString() doesn't show the custom HTTP Response Headers.

How can I access its value?

Thanks in advance

Upvotes: 0

Views: 869

Answers (1)

Darin Dimitrov
Darin Dimitrov

Reputation: 1038790

If it is IIS that is adding this response header you might not be able to read it in your application as this header might be added much later in the execution pipeline when the ASP.NET application has finished serving the request.

Upvotes: 2

Related Questions