views:

11

answers:

0

While developing a servlet in Jetty to work with Google Earth (GE), I'm finding an odd behavior. I'm writing a servlet for the Internal Browser of GE to hit and download a dynamic KML file, based on session information.

However, when the user clicks on the link http://download.kml.com/servlet/test.kml, GE makes two requests. The first request is fine, and has the same session information as the internal browser. However, the second request uses a different session information, and returns an error message, GE tries to load the error message as a KML, and not the proper response. Hitting the servlet with FireFox returns the proper KML file.

Any idea how to work around this or stop this double request?