How to use C++ /WinRT HttpRequestMessage with Custom POST Body and HttpFormUrlEncodedContent (UWP App)
How to use C++ /WinRT HttpRequestMessage with Custom POST Body and HttpFormUrlEncodedContent (UWP App) In Windows 10, 1803 it is possible to call the WinRT from standard conforming C++. The C++ /CX language extensions are not required anymore. I already know how to send a post Request to a Server using the HttpRequestMessage Class: #pragma comment(lib, "windowsapp") #include "pch.h" #include "winrt/Windows.Web.Http.Filters.h" #include "winrt/Windows.Web.Http.Headers.h" #include <winrt/Windows.Foundation.h> #include <winrt/Windows.Foundation.Collections.h> #include <string_view> using namespace winrt; using namespace Windows::Foundation; using namespace Windows::Web::Http; using namespace Windows::Web::Http::Filters; using namespace Windows::Web::Http::Headers; using namespace Windows::Foundation::Collections; using namespace std::literals; using namespace std; IAsyncAction HttpClientExample(Uri uri) { HttpBaseProtocolFilter ...