|resources:||Home Mailing List Installation Source Code Members Bugs Screenshots|
- 2003-12-01 Version 0.3.1 released
- 2003-11-03 Version 0.3 released
- 2003-06-29 Added plea for bug votes
- 2003-06-20 Version 0.2 released
- 2003-05-27 Version 0.1 released
Welcome to the ForceContentType project!
ForceContentType 0.3.1 has been released. To use this release, you'll need mozilla 1.6a with the patch attached to bug 210208 applied. This patch is now in the Mozilla 1.6 tree, and will be present in the next mozilla release (1.6b, presumably)
ForceContentType is a tool that gives web developers the ability to override the MIME Content-Type of files served from a webserver.
There are several compelling reasons why someone might want to override a Content-Type specified by a web server:
- Easy access to Mozilla's streamconv system. The Content-Type for a given document basically determines how it will be loaded in Mozilla. If you're interested in gory details, check this out. One element in this system is the Stream Converter. Stream Converters act as filters for incoming content. See, for instance, the Internet Explorer-emulating stream converter.
- Working with misconfigured webservers. Every now and then, you may run into a webserver that's serving the html output of a script as text/plain or application/octet-stream. With ForceContentType, you are no longer at the mercy of poor webmastery.
To use ForceContentType, you'll need to install JSLIB.
url: http://www.google.com/.* (or even http://www\.google\.com/.*) src: text/html dest: text/plain ... or even better, download IEStreamConv and use src: text/html dest: text/x-iehtml ... to run html pages from a given url through the IEStreamConv system.