<!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 3.1 of RFC 822</a> [<a
href="http://tools.ietf.org/html/rfc2616#ref-9"
title=""Standard for The Format of ARPA Internet Text Messages"">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&LAYERS=AAA805&FORMAT=image%2Fpng&TRANSPARENT=TRUE&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetFeatureInfo&STYLES=&EXCEPTIONS=application%2Fvnd.ogc.se_xml&SRS=EPSG%3A28992&BBOX=80410.227496%2C433911.299646%2C84251.633167%2C435237.721003&X=462&Y=108&INFO_FORMAT=text/xml&QUERY_LAYERS=AAA805&FEATURE_COUNT=1&WIDTH=1031&HEIGHT=356">"http://145.50.148.45:8081/cgi-bin/mapserv?map=/data/OGC_UMN_services/dtb_rws.map&LAYERS=AAA805&FORMAT=image%2Fpng&TRANSPARENT=TRUE&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetFeatureInfo&STYLES=&EXCEPTIONS=application%2Fvnd.ogc.se_xml&SRS=EPSG%3A28992&BBOX=80410.227496%2C433911.299646%2C84251.633167%2C435237.721003&X=462&Y=108&INFO_FORMAT=text/xml&QUERY_LAYERS=AAA805&FEATURE_COUNT=1&WIDTH=1031&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&LAYERS=AAA805&FORMAT=image%2Fpng&TRANSPARENT=TRUE&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetFeatureInfo&STYLES=&EXCEPTIONS=application%2Fvnd.ogc.se_xml&SRS=EPSG%3A28992&BBOX=80410.227496%2C433911.299646%2C84251.633167%2C435237.721003&X=462&Y=108&INFO_FORMAT=text/xml&QUERY_LAYERS=AAA805&FEATURE_COUNT=1&WIDTH=1031&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, */*
< HTTP/1.1 200 OK
< Date: Fri, 15 Jan 2010 12:46:24 GMT
< Server: Apache
< Transfer-Encoding: chunked
< Content-Type: text/xml
Content-type: application/vnd.ogc.se_xml
<?xml version='1.0' encoding="ISO-8859-1" standalone="no" ?>
<!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>>
<ServiceExceptionReport version="1.1.1">
<ServiceException>
msReturnPage(): Unable to access file. blank.html
</ServiceException>
</ServiceExceptionReport>
* 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>