Thanks ManoM for the interest!
KML file is just "normal" - and I generated it as "save as" from GE so the syntax should be ok (attached for info).
Here is the code how I link to it:
<a href="doc.kml"> <img src="
http://www.google.com/earth/images/google_earth_link.gif"
border="0" /></a>
I noticed interesting thing - if the page is open as a file link (ie C:..page.php) - download is activated. However if I open the page as
http://localhost... page.php - the link opens as XML...
Regarding HTTP 200 code, how to check if this is happening? This is what I get from Live HTTP Headers (extension to FF):
http://localhost/.../doc.kmlGET .../doc.kml HTTP/1.1
Host: localhost
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.7.12) Gecko/20050919 Firefox/1.0.7
Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 300
Connection: keep-alive
Referer:
http://localhost/.../new.phpIf-Modified-Since: Wed, 27 Sep 2006 13:55:25 GMT
If-None-Match: "f461-34ef-c66151f4"
HTTP/1.x 304 Not Modified
Date: Wed, 27 Sep 2006 14:12:21 GMT
Server: Apache/2.0.55 (Win32)
Connection: Keep-Alive
Keep-Alive: timeout=15, max=98
Etag: "f461-34ef-c66151f4"
But I noticed there is no ref to Content-Type: text/html; or else as with other headers...