Steven Cheng said:
Thanks for your reply Trapulo,
For your questions in the last reply:
I tried to find some specific settings on my development server, but it
seems that GE has not defined any setting (and, in fact, it seems
reasonable: it's very strange that it can update IIS settings..).
==================================
Yes, I agree that GE won't add any particular settings on the server.
However, I think it may register the mine-type in registery(whch will
display in the mime type list). Is this the difference between the two
servers?
I cannot find any difference. However, I also know that if I override with
response.ContentType the default mime type from aspx, IIS will stream data
with my mime type, and it will not use registry settings..
how can this work? If the two servers haven't any kml related mime
setting,
IIS cannot stream any header..
========================================
due to my limit experience with IIS, I can not gurantee the exact
behavior.
However, the mime-type list you see in the IIS management console's root
node will affect the response content if the document extension is
matching
one of the mime-type.
yes. But I'm streaming data from an aspx file, so IIS cannot work with
extension to set kml mime type. It uses aspx extension to start ASP.NET, the
I can set the mime streamed to the client..
Can you suggest any simple tool I can use? I haven't it and I don't know
what can I use
=======================================
I usually use the trace utility in Soap Toolkit 3.0 to capture http
request/response messages, you can find it in the following location:
I find this tool that is very simple and quick to use:
http://www.initworld.com/mozdev/livehttpheaders
Results:
This is from production server:
HTTP/1.x 200 OK
Cache-Control: private
Date: Fri, 15 Sep 2006 09:32:42 GMT
Content-Type: application/vnd.google-earth.kml+xml kml; charset=utf-8
Server: Microsoft-IIS/6.0
X-Powered-By: ASP.NET
X-AspNet-Version: 2.0.50727
content-disposition: attachment; filename=Localizzazione.kml
Content-Encoding: gzip
Vary: Accept-Encoding
Transfer-Encoding: chunked
This is from my dev envonment:
HTTP/1.x 200 OK
Server: ASP.NET Development Server/8.0.0.0
Date: Fri, 15 Sep 2006 09:35:36 GMT
X-AspNet-Version: 2.0.50727
content-disposition: attachment; filename=Localizzazione.kml
Cache-Control: private
Content-Type: application/vnd.google-earth.kml+xml kml; charset=utf-8
Content-Length: 1001
Connection: Close
This is from my development server, using IIS:
HTTP/1.x 200 OK
Date: Fri, 15 Sep 2006 09:37:58 GMT
Server: Microsoft-IIS/6.0
X-Powered-By: ASP.NET
X-AspNet-Version: 2.0.50727
content-disposition: attachment; filename=Localizzazione.kml
Cache-Control: private
Content-Type: application/vnd.google-earth.kml+xml kml; charset=utf-8
Content-Length: 969
And this is an example (from dev IIS) if I restore the content disposition
value to inline:
HTTP/1.x 200 OK
Date: Fri, 15 Sep 2006 09:42:14 GMT
Server: Microsoft-IIS/6.0
X-Powered-By: ASP.NET
X-AspNet-Version: 2.0.50727
content-disposition: inline; filename=Localizzazione.kml
Cache-Control: private
Content-Type: application/vnd.google-earth.kml+xml kml; charset=utf-8
Content-Length: 969
I cannot find any interesting difference.
From dev server, IE open GE. From production, it still shows data as
standard xml in IE itself
((