tls-client-sharp 1.0.0

dotnet add package tls-client-sharp --version 1.0.0
                    
NuGet\Install-Package tls-client-sharp -Version 1.0.0
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="tls-client-sharp" Version="1.0.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="tls-client-sharp" Version="1.0.0" />
                    
Directory.Packages.props
<PackageReference Include="tls-client-sharp" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add tls-client-sharp --version 1.0.0
                    
#r "nuget: tls-client-sharp, 1.0.0"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package tls-client-sharp@1.0.0
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=tls-client-sharp&version=1.0.0
                    
Install as a Cake Addin
#tool nuget:?package=tls-client-sharp&version=1.0.0
                    
Install as a Cake Tool

TLS Client Wrapper Sharp

A C# wrapper for bogdanfinn/tls-client that provides a custom HttpClientHandler. This allows you to make HTTP requests that mimic the TLS fingerprints of popular browsers, helping to bypass anti-bot protections.

Installation

The wrapper automatically checks for and downloads the required tls-client library from GitHub Releases upon the first run. It stores the library in the user's temporary folder to ensure portability. You do not need to manually download the DLL.

Usage

using TlsClientWrapperSharp.Handlers;
using TlsClientWrapperSharp.Helpers;
using TlsClientWrapperSharp.Models;

// 1. Ensure the library is downloaded (checks for updates or missing file)
await TlsLibraryLoader.EnsureLibraryExistsAsync();

// 2. Initialize the handler with a specific browser identifier
var tlsClientHandler = new TlsClientHandler
{
    TlsClientIdentifier = ClientIdentifier.Chrome133
};

// 3. Create a standard HttpClient using the handler
var httpClient = new HttpClient(tlsClientHandler);

// (Optional) Add headers as needed
httpClient.DefaultRequestHeaders.TryAddWithoutValidation("Accept-Language", "en-GB,en;q=0.9");

// 4. Make requests
var response = await httpClient.GetStringAsync("https://tls.browserleaks.com/tls");
Console.WriteLine(response);

Features

  • Automatic Library Management: Automatically downloads the correct tls-client binary for your OS (Windows, Linux, macOS).
  • TLS Fingerprint Spoofing: Mimic Chrome, Firefox, Safari, and Opera to blend in with normal traffic.
  • Standard HttpClient Integration: Works seamlessly with existing C# codebases by extending DelegatingHandler.
  • Proxy Support: Configure proxies directly on the handler.
Product Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 was computed.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • net8.0

    • No dependencies.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.0.0 1,258 12/4/2025