On Tue, Jan 11, 2011 at 1:05 PM, David Hite <[email protected]> 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
------------------------------------------------------------------------------
Gaining the trust of online customers is vital for the success of any company
that requires sensitive data to be transmitted over the Web. Learn how to
best implement a security strategy that keeps consumers' information secure
and instills the confidence they need to proceed with transactions.
http://p.sf.net/sfu/oracle-sfdevnl
_______________________________________________
Cpp-netlib-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/cpp-netlib-devel