From: Dean M. B. <mik...@gm...> - 2011-01-11 05:09:38
|
On Tue, Jan 11, 2011 at 1:05 PM, David Hite <dav...@gm...> wrote: > > Dean, > I got it to work! Cool! > Here's the code that works: > // These are my defs for namespace & server type > namespace http = boost::network::http; > typedef http::server<CgiServer> Server; > > http::request_header<http::tags::http_server> content_type = > {"Content-Type", "application/vnd.google-earth.kml+xml"}; > // set message in response > response = Server::response::stock_reply(Server::response::ok, kml_string); > response.headers.push_back( content_type ); Ah, yes, the tags are in the http namespace. I really should fix that with an example. :) > Thanks for your help! You're welcome! :) -- Dean Michael Berris about.me/deanberris |