HTTP

Frends.HTTP.SendBytes / 1.8.0

Summary

Sends a binary body and returns the response as text.

Typical use — uploading a file to an API that answers with JSON or a plain status message

Details

Frends version
5.7 and newer
Agent
Crossplatform
Target framework
net8.0
1.8.02026-10-26
Added
  • Added ThrowErrorOnFailure and ErrorMessageOnFailure options. By default errors are still thrown.
  • Result now contains Success and Error properties.
Changed
  • Task now targets .NET 8.
1.7.02026-10-20
Changed
  • HTTP client cache key is now derived with PBKDF2-SHA256.
1.6.02026-05-13
Added
  • Added UseProxy, ProxyUrl, ProxyUsername, ProxyPassword, HttpProtocolVersion, and SslProtocolVersion options with proxy handler and protocol configuration support.
1.5.02026-03-02
Added
  • Added CertificateStoreLocation option to allow selection between CurrentUser and LocalMachine certificate stores when using certificate authentication.
1.4.02025-10-10
Changed
  • Changed the return type of SendBytes from Task to Task
    1.3.02025-03-25
    Changed
    • Update packages: Newtonsoft.Json 12.0.1 -> 13.0.3 System.ComponentModel.Annotations 4.7.0 -> 5.0.0 System.Runtime.Caching 7.0.0 -> 9.0.3 coverlet.collector 3.1.0 -> 6.0.4 Microsoft.NET.Test.Sdk 16.7.0 -> 17.13.0 MSTest.TestAdapter 2.1.2 -> 3.8.3 MSTest.TestFramework 2.1.2 -> 3.8.3 nunit 3.12.0 -> 4.3.2 NUnit3TestAdapter 3.17.0 -> 5.0.0 RichardSzalay.MockHttp 6.0.0 -> 7.0.0 xunit.extensibility.core 2.4.2 -> 2.9.3
    1.2.02025-04-10
    Changed
    • Updated the default display format for the ContentBytes option to Expression.
    1.1.02024-12-30
    Changed
    • Descriptions of ClientCertificate suboptions includes clearer information about usage in terms of different types of ClientCertificate.
    1.0.02023-05-30
    Added
    • Initial implementation.
    An unhandled error has occurred. Reload 🗙