Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
PostAsync Method

HttpClient.PostAsync Method

.NET Framework 4.6 and 4.5

Send a POST request to the specified Uri as an asynchronous operation.

This member is overloaded. For complete information about this member, including syntax, usage, and examples, click a name in the overload list.

  Name Description
Public method PostAsync(String, HttpContent) Send a POST request to the specified Uri as an asynchronous operation.
Public method PostAsync(Uri, HttpContent) Send a POST request to the specified Uri as an asynchronous operation.
Public method PostAsync(String, HttpContent, CancellationToken) Send a POST request with a cancellation token as an asynchronous operation.
Public method PostAsync(Uri, HttpContent, CancellationToken) Send a POST request with a cancellation token as an asynchronous operation.
Top

This operation will not block.

Show:
© 2015 Microsoft