1

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 ?

JohnnyHK
  • 305,182
  • 66
  • 621
  • 471
Vivek Goel
  • 22,942
  • 29
  • 114
  • 186

1 Answers1

2

You can retrieve it by calling -

const char *value = mg_get_header(connection, "Host");
Captain Obvlious
  • 19,754
  • 5
  • 44
  • 74