HttpCloak 1.5.10

There is a newer prerelease version of this package available.
See the version list below for details.
dotnet add package HttpCloak --version 1.5.10
                    
NuGet\Install-Package HttpCloak -Version 1.5.10
                    
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="HttpCloak" Version="1.5.10" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="HttpCloak" Version="1.5.10" />
                    
Directory.Packages.props
<PackageReference Include="HttpCloak" />
                    
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 HttpCloak --version 1.5.10
                    
#r "nuget: HttpCloak, 1.5.10"
                    
#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 HttpCloak@1.5.10
                    
#: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=HttpCloak&version=1.5.10
                    
Install as a Cake Addin
#tool nuget:?package=HttpCloak&version=1.5.10
                    
Install as a Cake Tool

HttpCloak for .NET

Browser fingerprint emulation HTTP client with HTTP/1.1, HTTP/2, and HTTP/3 support. Bypass bot detection with accurate TLS fingerprints.

Installation

dotnet add package HttpCloak

Usage

using HttpCloak;

// Create a session with Chrome 143 fingerprint
using var session = new Session(preset: Presets.Chrome143Windows);

// Simple GET request
var response = session.Get("https://example.com");
Console.WriteLine($"Status: {response.StatusCode}");
Console.WriteLine($"Protocol: {response.Protocol}");
Console.WriteLine(response.Text);

// POST with JSON
var data = new { name = "test", value = 123 };
var postResponse = session.PostJson("https://api.example.com/data", data);
Console.WriteLine(postResponse.Json<MyResponseType>());

// Custom headers
var headers = new Dictionary<string, string>
{
    ["Authorization"] = "Bearer token123"
};
var authResponse = session.Get("https://api.example.com/protected", headers);

// Check for errors
response.RaiseForStatus(); // Throws if status >= 400

Configuration Options

using var session = new Session(
    preset: Presets.Chrome143Windows,  // Browser fingerprint
    proxy: "http://user:pass@host:8080",  // Optional proxy
    timeout: 30,  // Request timeout in seconds
    httpVersion: "auto",  // "auto", "h1", "h2", "h3"
    verify: true,  // SSL verification
    allowRedirects: true,  // Follow redirects
    maxRedirects: 10,  // Max redirect count
    retry: 3  // Retry on failure
);

Available Presets

  • Presets.Chrome143 - Chrome 143 (auto-detect platform)
  • Presets.Chrome143Windows - Chrome 143 on Windows
  • Presets.Chrome143Linux - Chrome 143 on Linux
  • Presets.Chrome143MacOS - Chrome 143 on macOS
  • Presets.Firefox133 - Firefox 133
  • Presets.Safari18 - Safari 18
  • Presets.IosChrome143 - Chrome on iOS
  • Presets.AndroidChrome143 - Chrome on Android
// Set a cookie
session.SetCookie("session_id", "abc123");

// Get all cookies
var cookies = session.GetCookies();
foreach (var (name, value) in cookies)
{
    Console.WriteLine($"{name}: {value}");
}

License

MIT

Product Compatible and additional computed target framework versions.
.NET net6.0 is compatible.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 is compatible.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  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 is compatible.  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 is compatible.  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.
  • net10.0

    • No dependencies.
  • net6.0

    • No dependencies.
  • net7.0

    • No dependencies.
  • net8.0

    • No dependencies.
  • net9.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.6.0-beta.13 24 2/12/2026
1.6.0-beta.12 32 2/12/2026
1.6.0-beta.11 30 2/11/2026
1.6.0-beta.10 26 2/11/2026
1.6.0-beta.9 31 2/11/2026
1.6.0-beta.8 29 2/11/2026
1.6.0-beta.7 36 2/10/2026
1.6.0-beta.6 36 2/10/2026
1.6.0-beta.5 31 2/10/2026
1.6.0-beta.4 32 2/10/2026
1.5.10 371 1/30/2026
1.5.9 247 1/22/2026
1.5.8 84 1/22/2026
1.5.7 101 1/17/2026
1.5.6 248 1/12/2026
1.5.5 81 1/11/2026
1.5.4 85 1/11/2026
1.5.3 87 1/10/2026
1.5.2 95 1/9/2026
1.5.1 89 1/8/2026
Loading failed