Add/remove response headers

Add-in Express™ Support Service
That's what is more important than anything else

Add/remove response headers
 
Neil Armstrong


Guest


Hi, is there a way to add or remove response headers using a toolbar addon?

Thanks,
Pietro
Posted 07 Mar, 2012 06:58:47 Top
Eugene Astafiev


Guest


Hi Neil,

Please take a look at the http://www.add-in-express.com/forum/read.php?FID=10&TID=9744 forum thread. Is it what you are looking for?
Posted 07 Mar, 2012 07:17:40 Top
Neil Armstrong


Guest


So there is no way to handle response headers? Not even an event I can handle? Of course using the HttpWebRequest would not help...
Posted 07 Mar, 2012 07:30:53 Top
Eugene Astafiev


Guest


Hi Neil,

Yep. The Internet Explorer Object Model doesn't provide any event for this.
Posted 07 Mar, 2012 07:36:45 Top
Neil Armstrong


Guest


It should be possible to do that accessing the IHttpNegotiate through IServiceProvider. Do you think I can access those interfaces from within a module, and listen to the OnResponse event?
Posted 08 Mar, 2012 07:50:28 Top
Sergey Grischenko


Add-in Express team


Posts: 7233
Joined: 2004-07-05
Hi Neil,

Thank you for the information. I will investigate this possibility and let you know about results asap.
Posted 08 Mar, 2012 10:31:23 Top
Neil Armstrong


Guest


Still investigating, I found that it should be possible to create a UrlMoniker, that intercepts events before they are handled by IE:

http://www.blackfishsoftware.com/blog/don/passthroughapp_bho_toolbar_intercepting_requests_responses

Thanks for your help!
Posted 08 Mar, 2012 10:44:08 Top
Sergey Grischenko


Add-in Express team


Posts: 7233
Joined: 2004-07-05
Thank you for the link, Neil.
Posted 09 Mar, 2012 03:38:09 Top
Sergey Grischenko


Add-in Express team


Posts: 7233
Joined: 2004-07-05
Hi Neil,

Sorry for the delay. I managed to implement the IHttpNegotiate interface in our add-ons. I will add the implementation to the new major version of Add-in Express for IE. It will be published in April.
Posted 21 Mar, 2012 14:37:58 Top
Neil Armstrong


Guest


Great, will I be able to manage responses then?

Also, is there a way to have a preview? I was implementing the same feature with a custom COM interface, but it would require too many updates on the project to be releasable.

Thanks!
Posted 22 Mar, 2012 03:48:25 Top