title: Display html page using mongoose server
body: <p>I am trying to display an html page in mongoose server
  I tried using the below code which is not working can any one tell me what is the issue in that code.</p>
  
  <pre><code>#include &lt;stdio.h&gt;
  #include &lt;string.h&gt;
  #include "mongoose/mongoose.h"
  
  static int begin_request_handler(struct mg_connection *conn) {
      const struct mg_request_info *request_info = mg_get_request_info(conn);
      static const char *login_url = "/index.html";
      mg_printf(conn, "HTTP/1.1 200 OK\r\n"
              "Content-Type: text/html\r\n"
              "Location: %s\r\n\r\n", login_url);
      return 1;
  }
  
  int main(void) {
      struct mg_context *ctx;
      struct mg_callbacks callbacks;
      const char *options[] = { "listening_ports", "8080", NULL };
      memset(&amp;callbacks, 0, sizeof(callbacks));
      callbacks.begin_request = begin_request_handler;
      ctx = mg_start(&amp;callbacks, NULL, options);
      getchar();
      mg_stop(ctx);
      return 0;
  }
  </code></pre>