[OpenLayers-Dev] proxy.cgi and OGC mimetypes

Bart van den Eijnden (OSGIS) bartvde at osgis.nl
Mon Dec 3 09:08:19 EST 2007

Hi list,

in order to use OGC webservices requests which have the mime-type of 
application/vnd.ogc.gml I overrule the mime-type in proxy.cgi.

Would this be interesting for the OL codebase? If so I can create a 
ticket and patch. Let me know.

        # overrule GML mimetype responses to text/xml
        if i["Content-Type"] == "application/vnd.ogc.gml":
          i["Content-Type"] = "text/xml"

I guess we could do the same for the OGC mimetype for WMS 
GetCapabilities (application/vnd.ogc.wms_xml) and service exceptions 
(application/vnd.ogc.se_xml). OGC has replaced these mimetypes anyway 
with standard XML mimetypes in future/new versions of the specs.

**Best regards,

Bart van den Eijnden
OSGIS, Open Source GIS
bartvde at osgis.nl

More information about the Dev mailing list