Adding a custom header to the response

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • =?Utf-8?B?SmVmZg==?=

    Adding a custom header to the response

    How can I add a custom header value to the response? I try:

    Response.Header s.Add("MyHeader ", "Value");
    Response.AddHea der("MyHeader", "Value");
    Response.Append Header("MyHeade r", "Value");

    nothing works. A lot of times I get a message about IIS integrated pipeline
    mode needing to be enabled, but as far as I can tell that's only on IIS 7??

    If anyone has any ideas, I'd be appreciative. I'm trying to do this in an
    HttpModule. The custom header values will be consumed by a legacy
    application, so I HAVE to do it this way.

    Thanks,

    Jeff
  • Alex Meleta

    #2
    Re: Adding a custom header to the response

    Hi Jeff,

    That's could helpful for you (already been discussed)
    A broad category of Microsoft tools, languages, and frameworks for software development. Designed to support developers in building, debugging, and deploying applications across various platforms.


    Regards, Alex
    [TechBlog] http://devkids.blogspot.com


    Comment

    Working...