Add/remove response headers

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

Add/remove response headers
 
Neil Armstrong




Posts: 7
Joined: 2012-01-26
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


Add-in Express team


Posts: 8540
Joined: 2007-07-25
Hi Neil,

Please take a look at the similar forum thread. Is it what you are looking for?
.NET, Extended MAPI, Windows Phone & RT
Posted 07 Mar, 2012 07:17:40 Top
Neil Armstrong




Posts: 7
Joined: 2012-01-26
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


Add-in Express team


Posts: 8540
Joined: 2007-07-25
Hi Neil,

Yep. The Internet Explorer Object Model doesn't provide any event for this.
.NET, Extended MAPI, Windows Phone & RT
Posted 07 Mar, 2012 07:36:45 Top
Neil Armstrong




Posts: 7
Joined: 2012-01-26
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: 7224
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




Posts: 7
Joined: 2012-01-26
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: 7224
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: 7224
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




Posts: 7
Joined: 2012-01-26
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