Simulation of mime types?

From: Daniel Barron (express@jadeb.com)
Date: Sat Jan 24 2004 - 03:22:22 MST


Everything is working well with 2.8 on RH8 thanks developers :)

I am using polymix 2 which seems to be working well. However I have a
question. I understand it simulates different types of file like html, gif
and so on by their average size and extension. But what is the mime type
set for each of these? Looking at contents.pg I find:

Content cntImage = {
        kind = "image";
        mime = { type = undef(); extensions = [ ".gif", ".jpeg", ".png" ]; };
        obj_life_cycle = olcImage;
        size = exp(4.5KB);
        cachable = 80%;
        checksum = 1%;
};

etc

That suggests the mime type is not set so what would it appear to the proxy
as? Would all the files appear as text/html? Including the gifs etc?

The reason I ask is I want to test a proxy that deals with different mime
types differently.

Should I do something like:

mime = { type = "text/html"; extensions = [ ".html" : 60%, ".htm" ]; };

mime = { type = "image/gif"; extensions = [ ".exe": 40%, ".zip", ".gz" ]; };

and so on?

-- 
Daniel Barron



This archive was generated by hypermail 2b29 : Mon Feb 06 2006 - 12:00:27 MST