<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html; charset=ISO-8859-1"
 http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
<pre class="newpage"><span class="h3">Hi Bart,

The HTTP specification (<a class="moz-txt-link-freetext" href="http://tools.ietf.org/html/rfc2616">http://tools.ietf.org/html/rfc2616</a>) says:

<h3>4.2 Message Headers</h3></span>   HTTP header fields, which include general-header (<a
 href="http://tools.ietf.org/html/rfc2616#section-4.5">section 4.5</a>),
   request-header (<a
 href="http://tools.ietf.org/html/rfc2616#section-5.3">section 5.3</a>), response-header (<a
 href="http://tools.ietf.org/html/rfc2616#section-6.2">section 6.2</a>), and
   entity-header (<a
 href="http://tools.ietf.org/html/rfc2616#section-7.1">section 7.1</a>) fields, follow the same generic format as
   that given in <a href="http://tools.ietf.org/html/rfc822#section-3.1">Section&nbsp;3.1 of RFC 822</a> [<a
 href="http://tools.ietf.org/html/rfc2616#ref-9"
 title="&quot;Standard for The Format of ARPA Internet Text Messages&quot;">9</a>]. Each header field consists
   of a name followed by a colon (":") and the field value. Field names
   are case-insensitive.</pre>
What's your problem whith a lower case "t"? Content-type is an
entity-header, so applications should accept both T and t .<br>
<br>
Jan <br>
<br>
<br>
On 15-1-2010 14:04, <a class="moz-txt-link-abbreviated" href="mailto:bartvde@osgis.nl">bartvde@osgis.nl</a> wrote:
<blockquote
 cite="mid:3509.145.50.39.11.1263560664.squirrel@webmail.hostingdiscounter.nl"
 type="cite">
  <pre wrap="">Hi list,

I am having issue with Mapserver outputting Content-type in the body
instead of in the headers. I found that this is because Mapserver outputs
Content-type instead of Content-Type in a lot of cases. Should this not be
fixed in the source? Am I the only one running into this, and if so, how
come?

For instance:

[bart@hades mapserver-5.2.0]$ curl
<a class="moz-txt-link-rfc2396E" href="http://145.50.148.45:8081/cgi-bin/mapserv?map=/data/OGC_UMN_services/dtb_rws.map&amp;LAYERS=AAA805&amp;FORMAT=image%2Fpng&amp;TRANSPARENT=TRUE&amp;SERVICE=WMS&amp;VERSION=1.1.1&amp;REQUEST=GetFeatureInfo&amp;STYLES=&amp;EXCEPTIONS=application%2Fvnd.ogc.se_xml&amp;SRS=EPSG%3A28992&amp;BBOX=80410.227496%2C433911.299646%2C84251.633167%2C435237.721003&amp;X=462&amp;Y=108&amp;INFO_FORMAT=text/xml&amp;QUERY_LAYERS=AAA805&amp;FEATURE_COUNT=1&amp;WIDTH=1031&amp;HEIGHT=356">"http://145.50.148.45:8081/cgi-bin/mapserv?map=/data/OGC_UMN_services/dtb_rws.map&amp;LAYERS=AAA805&amp;FORMAT=image%2Fpng&amp;TRANSPARENT=TRUE&amp;SERVICE=WMS&amp;VERSION=1.1.1&amp;REQUEST=GetFeatureInfo&amp;STYLES=&amp;EXCEPTIONS=application%2Fvnd.ogc.se_xml&amp;SRS=EPSG%3A28992&amp;BBOX=80410.227496%2C433911.299646%2C84251.633167%2C435237.721003&amp;X=462&amp;Y=108&amp;INFO_FORMAT=text/xml&amp;QUERY_LAYERS=AAA805&amp;FEATURE_COUNT=1&amp;WIDTH=1031&amp;HEIGHT=356"</a>
--verbose
* About to connect() to 145.50.148.45:8081
* Connected to rws-svl023i.rws.nwr.local (145.50.148.45) port 8081
  </pre>
  <blockquote type="cite">
    <pre wrap="">GET
    </pre>
  </blockquote>
  <pre wrap="">/cgi-bin/mapserv?map=/data/OGC_UMN_services/dtb_rws.map&amp;LAYERS=AAA805&amp;FORMAT=image%2Fpng&amp;TRANSPARENT=TRUE&amp;SERVICE=WMS&amp;VERSION=1.1.1&amp;REQUEST=GetFeatureInfo&amp;STYLES=&amp;EXCEPTIONS=application%2Fvnd.ogc.se_xml&amp;SRS=EPSG%3A28992&amp;BBOX=80410.227496%2C433911.299646%2C84251.633167%2C435237.721003&amp;X=462&amp;Y=108&amp;INFO_FORMAT=text/xml&amp;QUERY_LAYERS=AAA805&amp;FEATURE_COUNT=1&amp;WIDTH=1031&amp;HEIGHT=356
HTTP/1.1
User-Agent: curl/7.10.6 (i386-redhat-linux-gnu) libcurl/7.10.6
OpenSSL/0.9.7a ipv6 zlib/1.1.4
Host: 145.50.148.45:8081
Pragma: no-cache
Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, */*

&lt; HTTP/1.1 200 OK
&lt; Date: Fri, 15 Jan 2010 12:46:24 GMT
&lt; Server: Apache
&lt; Transfer-Encoding: chunked
&lt; Content-Type: text/xml
Content-type: application/vnd.ogc.se_xml

&lt;?xml version='1.0' encoding="ISO-8859-1" standalone="no" ?&gt;
&lt;!DOCTYPE ServiceExceptionReport SYSTEM
<a class="moz-txt-link-rfc2396E" href="http://schemas.opengis.net/wms/1.1.1/exception_1_1_1.dtd">"http://schemas.opengis.net/wms/1.1.1/exception_1_1_1.dtd"</a>&gt;
&lt;ServiceExceptionReport version="1.1.1"&gt;
&lt;ServiceException&gt;
msReturnPage(): Unable to access file. blank.html
&lt;/ServiceException&gt;
&lt;/ServiceExceptionReport&gt;
* Connection #0 left intact
* Closing connection #0

TIA.

Best regards,
Bart

_______________________________________________
mapserver-dev mailing list
<a class="moz-txt-link-abbreviated" href="mailto:mapserver-dev@lists.osgeo.org">mapserver-dev@lists.osgeo.org</a>
<a class="moz-txt-link-freetext" href="http://lists.osgeo.org/mailman/listinfo/mapserver-dev">http://lists.osgeo.org/mailman/listinfo/mapserver-dev</a>
  </pre>
</blockquote>
</body>
</html>