[mapserver-users] Mapserver WMS server, IIS and wrong content-type
Jeff McKenna
jmckenna at gatewaygeomatics.com
Mon Jul 4 07:19:43 PDT 2011
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.1&REQUEST=GetMap&SERVICE=WMS&LAYERS=Communes&SRS=EPSG:4326&BBOX=6.71555,46.3924,7.43958,47.0604&WIDTH=500&HEIGHT=500&FORMAT=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
>
>
More information about the MapServer-users
mailing list