HttpCloak 1.5.2
There is a newer version of this package available.
See the version list below for details.
See the version list below for details.
dotnet add package HttpCloak --version 1.5.2
NuGet\Install-Package HttpCloak -Version 1.5.2
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.2" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="HttpCloak" Version="1.5.2" />
<PackageReference Include="HttpCloak" />
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.2
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: HttpCloak, 1.5.2"
#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.2
#: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.2
#tool nuget:?package=HttpCloak&version=1.5.2
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
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 WindowsPresets.Chrome143Linux- Chrome 143 on LinuxPresets.Chrome143MacOS- Chrome 143 on macOSPresets.Firefox133- Firefox 133Presets.Safari18- Safari 18Presets.IosChrome143- Chrome on iOSPresets.AndroidChrome143- Chrome on Android
Cookie Management
// 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 | Versions 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 | 41 | 2/12/2026 |
| 1.6.0-beta.12 | 37 | 2/12/2026 |
| 1.6.0-beta.11 | 48 | 2/11/2026 |
| 1.6.0-beta.10 | 31 | 2/11/2026 |
| 1.6.0-beta.9 | 36 | 2/11/2026 |
| 1.6.0-beta.8 | 34 | 2/11/2026 |
| 1.6.0-beta.7 | 41 | 2/10/2026 |
| 1.6.0-beta.6 | 41 | 2/10/2026 |
| 1.6.0-beta.5 | 36 | 2/10/2026 |
| 1.6.0-beta.4 | 37 | 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