PDA

View Full Version : Content-type



danny6869
2005-07-15, 22:46
I am once again seeking some expert SS/Plugin information...

Is there a way I can change the content-type that my custom web page is spit out as? I need it to NOT be text/html.

Also...why does the .CSV page I have defined here not work??? I can access the .htm one...but the .CSV one completely chokes (possibly because it's not spitting out a content-type, so the answer to my first question could fix this)

my %pages=(
"virtualdiscs\.(?:htm|xml)" => \&downloadCSV,
"virtualdiscs\.(?:csv)" => \&downloadCSV,
);

Danny Rego

mherger
2005-07-15, 23:58
> Is there a way I can change the content-type that my custom web page is
> spit out as? I need it to NOT be text/html.

You could add a custom-types.conf to the server's root containing csv (see
types.conf for more info).

--

Michael

-----------------------------------------------------------
Help translate SlimServer by using the
StringEditor Plugin (http://www.herger.net/slim/)

danny6869
2005-07-16, 06:37
I know, but I meant, is there a way to do this that doesn't require farting
around with the config file. I would just like someone to be able to
download my plugin...drop it in...and that's it. Is there any other way to
have a custom mime-type for this?

Danny Rego


----- Original Message -----
From: "Michael Herger" <slim (AT) herger (DOT) net>
To: "Slim Devices Developers" <developers (AT) lists (DOT) slimdevices.com>
Sent: Saturday, July 16, 2005 2:58 AM
Subject: Re: [Developers] Content-type


> Is there a way I can change the content-type that my custom web page is
> spit out as? I need it to NOT be text/html.

You could add a custom-types.conf to the server's root containing csv (see
types.conf for more info).

--

Michael

-----------------------------------------------------------
Help translate SlimServer by using the
StringEditor Plugin (http://www.herger.net/slim/)