Answers

The body parameter that you are looking at is the entity body of the HTTP POST request. In the HttpClient sample, if you run Scenario4, the body is essentially the "Hello World" word. Once you have an entity body to send, you will need to copy it into a
stream and then use the IXMLHttpRequest2::Send function to send the entity body.

All replies

The body parameter that you are looking at is the entity body of the HTTP POST request. In the HttpClient sample, if you run Scenario4, the body is essentially the "Hello World" word. Once you have an entity body to send, you will need to copy it into a
stream and then use the IXMLHttpRequest2::Send function to send the entity body.

New in Windows 8.1: the Windows.Web.Http HttpClient API.This is an easy-to-use, full-featured HTTP API that works in all languages: C++, .NET (C#, VB) and JavaScript.Advantages of the new API include: strongly typed headers (meaning: you write fewer bugs in less time), full support for standard WinRT async concepts and data types.

HttpClient also lets you inject your modular filter code into the HTTP processing pipeline, letting you handle logging, testing, retry and auth more naturally.Samples of filters include retry and metered network filters in the HttpClient sample, and OAUTH and OAUTH 2.0 support in the Web Authentication Broker sample.

(Note that the existing IXHR2 code is still available for developers, and your existing Windows 8 code should continue to work as expected)