IE MIME / Content Filtering

I'm looking for ways to develop an extension for IE6 + that will handle custom MIME types.

As an example, I should be able to take a document with a custom MIME type that is returned by the server, do some processing on it, and then change the MIME type to something that IE can handle, like text / html or image / jpeg.

I am familiar with urlmon MIME filters, but they have a huge weakness; they are called only for a top-level document, and not for any additional page content, such as images, etc.

The only way I can think about this is to connect the HTTP / S protocol handlers using vtable / iat patches, similar to how Google Gears works to intercept response headers and change the headers and body of the response when a document is received with the specified MIME type.

I am wondering if anyone has any good ideas on how this can be achieved in a less negligent / intrusive way.

Edit: Just thought I'd keep an eye on this and mention that I went with the vtable patch to the HTTP / S protocol handlers, and it worked much better than I expected. If anyone else wants to do something like this, I highly recommend taking a look at the Google Gears HttpHandlerPatch class for some inspiration.

+4
source share
1 answer

A few years ago I wrote such extensions, BHO, IE toolbars, etc., based on a book called Shell Programming in VB6. The book I used is this: http://oreilly.com/catalog/9781565926707/ This book tells how to connect and put messages in IE. I wrote a view of the screen scraper (the post-rendering style is not like a spider that does not execute JavaScript at first). It was based on IE5, but extensions still work with IE6. I probably still have the source of VB6. I do not suggest updating it to .Net for you.

PS. The overview on this page is with me Haroeris Astrum :)

0
source

All Articles