I am writing a client side code in Visual C++ 2012 using C++ Rest SDK (codename "Casablanca"). I have a client created and wish to POST a text string to the server. However, when I send the following code, it is compiling but not sending sending the request. When I remove everything after "methods::POST" and send a blank post request, then it is sent and received by the server. Can you please guide me where the problem is. The documentation related to this function is available on Casablanca Documentation.
pplx::task<http_response>resp = client.request(methods::POST,L"",L"This is the random text that I wish to send", L"text/plain");