Yes I am able to do that.
listener.support(methods::POST,[](http_request req)
{
//auto posted = p->FromJSON(req.extract_json().get());
std::cout << "Serving POST" << std::endl;
req.reply(status_codes::OK, U("<html><body><h1>It works!</h1>(Casablanca, that is a PUT Request.)</body></html>"), U("text/html"));
});
What I am looking for is posting a string from webpage to the listener.