how to get domain name in mongoose server c++
I am using http://code.google.com/p/mongoose/ server inside my c++ application. I am looking a way to find domain name in c++ code. Is there any api in m开发者_如何学编程ongoose to get current domain name ?
You can retrieve it by calling -
const char *value = mg_get_header(connection, "Host");
精彩评论