Re: [mapserver-users] Mapserver WMS server, IIS and wrong content-type
Hello Oliver, Quick guess: maybe that IIS instance needs to be configured for that MIME type (http://technet.microsoft.com/en-us/library/cc786786%28WS.10%29.aspx). -jeff -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ On 11-07-04 10:54 AM, Oliver Christen wrote: hi list One of our client reported some strange problem they have with their Mapserver (5.2.1) WMS server running on IIS 6.0, when doing a GetMap resquest, the Content-Type in the response is text/html instead of the mimetype specified in the OUTPUTFORMAT in the mapfile for the image format requested, as a result the image is displayed as text in browsers and some other clients. for example: http://geo.fr.ch/wms/orthophoto_2005_fribourg.php?VERSION=1.1.1REQUEST=GetMapSERVICE=WMSLAYERS=CommunesSRS=EPSG:4326BBOX=6.71555,46.3924,7.43958,47.0604WIDTH=500HEIGHT=500FORMAT=image/png the header say: HTTP/1.1 200 OK Date: Mon, 04 Jul 2011 11:40:31 GMT Server: Microsoft-IIS/6.0 Content-Type: text/html Content-Length: 123821 the OUTPUTFORMAT in the mapfile are: OUTPUTFORMAT NAME png24 DRIVER AGG/PNG MIMETYPE image/png IMAGEMODE RGBA EXTENSION png FORMATOPTION INTERLACE=ON TRANSPARENT ON END OUTPUTFORMAT NAME jpeg DRIVER GD/JPEG MIMETYPE image/jpeg IMAGEMODE RGB EXTENSION jpg FORMATOPTION INTERLACE=ON FORMATOPTION QUALITY=90 END Anyone has a idea what could be wrong? Is it some missing Mapserver configuration ? Or maybe in the IIS configuration? thanks for any idea about this. best regards Oliver Christen ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Mapserver WMS server, IIS and wrong content-type
Hi Jeff that would make some sens, but would IIS recognise the extension type when the url requested is a dynamic wms url ? ie. would IIS use the filename returned by Mapserver to match the extension ? O. Hello Oliver, Quick guess: maybe that IIS instance needs to be configured for that MIME type (http://technet.microsoft.com/en-us/library/cc786786%28WS.10%29.aspx). -jeff ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Mapserver WMS server, IIS and wrong content-type
Hello Oliver, It can't hurt to try the steps outlined in that link I provided. It would answer the questions you posed in your last email. -jeff -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ On 11-07-04 11:24 AM, Oliver Christen wrote: Hi Jeff that would make some sens, but would IIS recognise the extension type when the url requested is a dynamic wms url ? ie. would IIS use the filename returned by Mapserver to match the extension ? O. Hello Oliver, Quick guess: maybe that IIS instance needs to be configured for that MIME type (http://technet.microsoft.com/en-us/library/cc786786%28WS.10%29.aspx). -jeff ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Mapserver WMS server, IIS and wrong content-type
Hi Jeff, I do not have my hand on that server so I cant test it myself, I was only relaying the question. I did read the article but I failed to see how it would solve the problem. I will relay that info to the server admin and see if it works. thank you best regards Oliver Hello Oliver, It can't hurt to try the steps outlined in that link I provided. It would answer the questions you posed in your last email. -jeff ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Mapserver WMS server, IIS and wrong content-type
Hello Oliver, Here is some more info, taken from http://www.libpng.org/pub/png/pngstatus.html : As a related item, note that Microsoft's Internet Information Server (a.k.a. IIS) shipped by default without an explicit MIME type for PNG images until version 6, which effectively meant that it treated PNGs as application/octet-stream rather than image/png. Not surprisingly, this affected only non-Microsoft web browsers connecting to IIS servers; they rightly refused to display such mislabelled PNGs. Fortunately, Microsoft did finally correct the problem with the release of IIS 6.0 in 2003, and a fix is available for older versions (at least for version 4.0). So that goes along with my initial ideas. Anyway those are my quick thoughts on your problem with your client's IIS instance. If you want to contact me directly and we can work through this together with your client please do. -jeff -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ On 11-07-04 11:39 AM, Oliver Christen wrote: Hi Jeff, I do not have my hand on that server so I cant test it myself, I was only relaying the question. I did read the article but I failed to see how it would solve the problem. I will relay that info to the server admin and see if it works. thank you best regards Oliver Hello Oliver, It can't hurt to try the steps outlined in that link I provided. It would answer the questions you posed in your last email. -jeff ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users