Reminder: set the “content-type” on your web program

As I pointed out in class, you need to make sure that the HTTP response you send from your server includes the correct type, so Argon interprets it correctly.   To set the content type of the response in Python in App Engine, I did this:

self.response.headers[‘Content-Type’] = ‘application/vnd.google-earth.kml+xml’

This entry was posted in Announcements, classnotes by Blair MacIntyre. Bookmark the permalink.

About Blair MacIntyre

Blair MacIntyre is a Professor in the School of Interactive Computing at the Georgia Tech, where he has directed the GVU Center's Augmented Environments Lab since 1999. He has been conducting Augmented Reality research since 1991, with the goal of understanding the potential of AR as a new medium for games, entertainment, education and work. He has collaborated on a variety of AR gaming and entertainment projects over the years, on handheld, head-worn and projected AR displays.

1 thought on “Reminder: set the “content-type” on your web program

  1. For those wanting to try Google Go, the equivalent code is:
    w.Header().Set(“Content-type”, “application/vnd.google-earth.kml+xml”)

    where w is the name of your http.ResponseWriter.

Leave a Reply