开发者

how to get domain name in mongoose server c++

开发者 https://www.devze.com 2023-03-22 13:10 出处:网络
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.

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");
0

精彩评论

暂无评论...
验证码 换一张
取 消