[Mapserver-dev] MIME Types...
Daniel Morissette
morissette at dmsolutions.ca
Mon Nov 3 16:33:52 EST 2003
Steve Lime wrote:
> Hi Folks: I/we need to be able to change MIME types for query results
> somehow. It's possible to output plain text, HTML, XML, SVG (with new
> shpxy tag) and even PHP code as a result of a query, but at the moment
> everything is sent as text/html. I could add a msGetQueryMIMEType
> function to examine template filename extensions and return a type, but
> I'm wondering if something more general for templates and images alike
> might be warranted. Thoughts?
>
FYI the WMS Server's GetFeatureInfo has a way to specify the MIME type
returned by the query templates by setting the
"wms_feature_info_mime_type" metadata in the top-level web object. I
did this because there was no better mechanism in place but I would be
very happy to change this to use a better mechanism if you create one.
I've read both Frank and Jan's suggestions and I think they both have
pros and cons... I'm not sure which one I prefer...
Daniel
--
------------------------------------------------------------
Daniel Morissette morissette at dmsolutions.ca
DM Solutions Group http://www.dmsolutions.ca/
------------------------------------------------------------
More information about the mapserver-dev
mailing list