Blog Logo
TAGS

Sending files and additional data using HttpClient in .NET Core

Learn how to send a multipart HTTP requests containing files using HttpClient in .NET Core, and how to send files with additional data. This article describes the solutions for common cases and presents raw HTTP messages that are generated by the HttpClient for multipart requests. Includes code samples in C#. Topics covered include: sending a single file, sending a file with additional data, and preparing a request object.