> -----Original Message----- > From: Carmen Delia Hernández Pérez [mailto:cdhernan...@tenerife.es] > Sent: Thursday, 21 May 2009 07:59 > To: Kralidis,Tom [Ontario]; mapserver-users@lists.osgeo.org > Subject: RE: [mapserver-users] Getcapabilities mime-type > > Thank you, but then for example these WMS services that I > write don´t follow the OGC WMS ? When I do the request > GetCapabilites to these services My web browser show me the > answer directly. > > > http://www.sigmayores.csic.es/ArcGIS/services/WMS/MapServer/WM > SServer?REQUEST=GetCapabilities&SERVICE=WMS > > http://www.conselldemallorca.net/ide/wms_xarxa_transport/MapSe > rver/WMSServer?REQUEST=GetCapabilities&SERVICE=WMS > > http://ide.jccm.es/cgi-bin/mapserv?map=/usr/local/webmapping/i declm/mapserver/ideclm.map&version=1.0.0&REQUEST=GETCAPABILITIES >
Well, if it's returning a 1.1.0 or 1.1.1 WMS Capabilities document, the spec says that application/vnd.ogc.wms_xml must be returned as the MIME type. > > -----Mensaje original----- > De: Kralidis,Tom [Ontario] [mailto:tom.krali...@ec.gc.ca] > Enviado el: jueves, 21 de mayo de 2009 12:41 > Para: Carmen Delia Hernández Pérez; mapserver-users@lists.osgeo.org > Asunto: RE: [mapserver-users] Getcapabilities mime-type > > > > > -----Original Message----- > > From: mapserver-users-boun...@lists.osgeo.org > > [mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf > Of Carmen > > Delia Hernández Pérez > > Sent: Thursday, 21 May 2009 06:52 > > To: mapserver-users@lists.osgeo.org > > Subject: [mapserver-users] Getcapabilities mime-type > > > > Hello! > > > > > > > > I have installed Mapserver v. 5.2.1 and it´s working. I > want my web > > browser understands directly the file returned by a request > > Getcapabilities, that is a xml file really, and don´t query me if I > > want to downloading file . I've read about mime-types > configuration in > > the httpd.conf file of Apache server, but I don`t know what I must > > write exactly. > > > > See > http://www.mapserver.org/faq.html#when-i-do-a-getcapabilities- > why-does-my-browser-want-to-download-mapserv-exe-mapserv > > You _could_ write a MapScript WxS wrapper to change the MIME > type when GetCapabilities is called, but note that you would > be breaking OGC WMS support. > > ..Tom > _______________________________________________ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users