Quantcast
Channel: WE MOVED to github.com/microsoft/cpprestsdk. This site is not monitored!
Viewing all articles
Browse latest Browse all 4845

New Post: New to Casablanck SDKs

$
0
0
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.

Viewing all articles
Browse latest Browse all 4845

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>