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 mongoose to get current domain name ?
Asked
Active
Viewed 786 times
1 Answers
2
You can retrieve it by calling -
const char *value = mg_get_header(connection, "Host");

Captain Obvlious
- 19,754
- 5
- 44
- 74