HttpClient TLS Fingerprint in C#: Capture It, Then Route Around It

The HttpClient TLS fingerprint in C# is decided by the handshake, and on Windows no setting in the managed API lets you choose its order. This guide captures that handshake with a listener you run yourself, measures what each setting changes in the JA3 and JA4 hashes, and shows the one route I measured end to end: send the protected requests from a real browser and get the token from CapSkip. CapSkip runs on a Windows PC you own, for a flat license.
What you need
- The .NET 10 SDK. The Lab listener ran on net10.0 only. The four clients, Probe, BrowserProbe, Blocked and Flow, ran on net8.0 (8.0.27) and net10.0 (10.0.0), on Windows 11 build 10.0.26200.9711.
- Google Chrome 157.0.8103.78 is all the steps need. Optional: install Playwright Chromium 159.0.8154.6 with the playwright.ps1 script in a build output folder, to repeat the last browser comparison.
- The NuGet packages CapSkip 1.8.0 (netstandard2.0, with System.Text.Json 8.0.5) and Microsoft.Playwright 1.65.1 (netstandard2.0, with a bundled Node.js driver, v26.13.1 in my copy).
- CapSkip on Windows, for the last step. See the connection settings in the setup guide: Local mode listens on 127.0.0.1 only, and Server mode lets another machine call it over the API.
The CapSkip app did not answer on this PC, so every CapSkip result below came from a mock in.php and res.php that I wrote on its own port. The protected site is a mock too. Its block rule is mine and stands in for whatever a real site does. I sent nothing to a real CAPTCHA site and claim nothing about real WAFs.
Step 1: capture your own ClientHello
A fingerprint is a hash of the first message a client sends, the ClientHello. JA3 hashes the version, cipher suites, extensions in the order sent, supported groups and point formats, with GREASE values removed. JA4 sorts the cipher suites and extensions first, so order does not change it. Cloudflare documents both on its JA3 and JA4 page, and the JA4 format lives in the FoxIO ja4 repository.
# PowerShell, in a new empty folder dotnet new console -n Lab dotnet new console -n Probe dotnet new console -n BrowserProbe dotnet new console -n Blocked dotnet new console -n Flow dotnet add BrowserProbe package Microsoft.Playwright --version 1.65.1 dotnet add Flow package Microsoft.Playwright --version 1.65.1 dotnet add Flow package CapSkip --version 1.8.0
This first file parses the raw record before any TLS library sees it.
// Fingerprint.cs, part 1: parse a raw ClientHello record.
using System.Security.Cryptography;
using System.Text;
public record Hello(int Version, List<int> Ciphers, List<int> Exts, List<int> Groups,
List<int> Points, List<int> SigAlgs, List<int> Versions, List<string> Alpn, bool Sni);
public static partial class Fp
{
// GREASE values are 0x0a0a, 0x1a1a, 0x2a2a and so on up to 0xfafa.
public static bool Grease(int v) => (v & 0x0f0f) == 0x0a0a && (v >> 8) == (v & 0xff);
static int U16(byte[] b, int p) => (b[p] << 8) | b[p + 1];
static List<int> U16List(byte[] b, int p, int len) =>
Enumerable.Range(0, len / 2).Select(i => U16(b, p + 2 * i)).ToList();
public static Hello Parse(byte[] r)
{
if (r[0] != 0x16 || r[5] != 0x01) throw new InvalidDataException("not a ClientHello");
int p = 9, version = U16(r, p);
p += 2 + 32;
p += 1 + r[p]; // session id
int csLen = U16(r, p);
var ciphers = U16List(r, p + 2, csLen);
p += 2 + csLen;
p += 1 + r[p]; // compression methods
int end = p + 2 + U16(r, p);
p += 2;
var h = new Hello(version, ciphers, [], [], [], [], [], [], false);
bool sni = false;
while (p + 4 <= end)
{
int type = U16(r, p), len = U16(r, p + 2), d = p + 4;
h.Exts.Add(type);
switch (type)
{
case 0x0000: sni = true; break;
case 0x000a: h.Groups.AddRange(U16List(r, d + 2, U16(r, d))); break;
case 0x000b: h.Points.AddRange(r.Skip(d + 1).Take(r[d]).Select(x => (int)x)); break;
case 0x000d: h.SigAlgs.AddRange(U16List(r, d + 2, U16(r, d))); break;
case 0x002b: h.Versions.AddRange(U16List(r, d + 1, r[d])); break;
case 0x0010:
for (int q = d + 2; q < d + 2 + U16(r, d); q += 1 + r[q])
h.Alpn.Add(Encoding.ASCII.GetString(r, q + 1, r[q]));
break;
}
p = d + len;
}
return h with { Sni = sni };
}
}The second part of the same file computes the hashes, with JA4 implemented from the FoxIO specification.
public static partial class Fp
{
static string Join(string sep, IEnumerable<int> v) => string.Join(sep, v.Where(x => !Grease(x)));
public static (string Raw, string Md5) Ja3(Hello h)
{
var raw = string.Join(",", h.Version, Join("-", h.Ciphers), Join("-", h.Exts),
Join("-", h.Groups), Join("-", h.Points));
return (raw, Convert.ToHexString(MD5.HashData(Encoding.ASCII.GetBytes(raw))).ToLowerInvariant());
}
static string Sha12(string s) =>
Convert.ToHexString(SHA256.HashData(Encoding.ASCII.GetBytes(s))).ToLowerInvariant()[..12];
static string Hex(IEnumerable<int> v) => string.Join(",", v.Select(x => x.ToString("x4")));
public static string Ja4(Hello h)
{
int ver = h.Versions.Where(x => !Grease(x)).DefaultIfEmpty(h.Version).Max();
string v = ver switch { 0x0304 => "13", 0x0303 => "12", 0x0302 => "11", 0x0301 => "10", _ => "00" };
var ciphers = h.Ciphers.Where(x => !Grease(x)).ToList();
var exts = h.Exts.Where(x => !Grease(x)).ToList();
string alpn = "00";
if (h.Alpn.Count > 0 && h.Alpn[0].Length > 0)
alpn = $"{h.Alpn[0][0]}{h.Alpn[0][^1]}"; // the spec's hex fallback for non-alphanumerics is left out
string a = $"t{v}{(h.Sni ? 'd' : 'i')}{Math.Min(ciphers.Count, 99):00}{Math.Min(exts.Count, 99):00}{alpn}";
string b = ciphers.Count == 0 ? "000000000000" : Sha12(Hex(ciphers.Order()));
var c = exts.Where(x => x != 0x0000 && x != 0x0010).Order().ToList();
string cs = Hex(c) + (h.SigAlgs.Count > 0 ? "_" + Hex(h.SigAlgs.Where(x => !Grease(x))) : "");
return $"{a}_{b}_{(c.Count == 0 ? "000000000000" : Sha12(cs))}";
}
}The listener logs both hashes and replays the same bytes into a real SslStream, so the handshake finishes. It answers whoami with the hashes, and its mock rule opens the login page only when the JA4 is listed in allow.txt.
// Program.cs: a TLS listener that reads the raw ClientHello before any TLS library does.
using System.Net;
using System.Net.Security;
using System.Net.Sockets;
using System.Security.Cryptography;
using System.Security.Cryptography.X509Certificates;
using System.Text;
// A throwaway self-signed certificate for localhost.
using var key = RSA.Create(2048);
var request = new CertificateRequest("CN=localhost", key, HashAlgorithmName.SHA256, RSASignaturePadding.Pkcs1);
var names = new SubjectAlternativeNameBuilder();
names.AddDnsName("localhost");
request.CertificateExtensions.Add(names.Build());
using var made = request.CreateSelfSigned(DateTimeOffset.UtcNow.AddDays(-1), DateTimeOffset.UtcNow.AddDays(30));
var cert = X509CertificateLoader.LoadPkcs12(made.Export(X509ContentType.Pfx), null);
var listener = new TcpListener(IPAddress.Loopback, 12610);
listener.Start();
Console.WriteLine("listening on https://localhost:12610/whoami");
while (true)
{
var tcp = await listener.AcceptTcpClientAsync();
_ = Task.Run(() => Serve(tcp));
}
async Task Serve(TcpClient tcp)
{
using var _ = tcp;
try
{
var net = tcp.GetStream();
// The record header is 5 bytes; its last two bytes give the length of the ClientHello.
var rec = new byte[5];
await net.ReadExactlyAsync(rec);
Array.Resize(ref rec, 5 + ((rec[3] << 8) | rec[4]));
await net.ReadExactlyAsync(rec.AsMemory(5));
var hello = Fp.Parse(rec);
var (ja3raw, ja3) = Fp.Ja3(hello);
var ja4 = Fp.Ja4(hello);
Console.WriteLine($"{DateTime.Now:HH:mm:ss} ja4 {ja4} ja3 {ja3}");
// Hand the same bytes to a real TLS server so the handshake completes.
using var ssl = new SslStream(new Replay(rec, net));
await ssl.AuthenticateAsServerAsync(new SslServerAuthenticationOptions
{
ServerCertificate = cert,
ApplicationProtocols = [SslApplicationProtocol.Http11],
});
var buffer = new byte[8192];
int got = await ssl.ReadAsync(buffer);
string text = Encoding.ASCII.GetString(buffer, 0, got);
string path = text.Split(' ')[1];
// The mock rule: only a JA4 listed in allow.txt may open /login.
var allowed = File.Exists("allow.txt") && File.ReadAllLines("allow.txt").Contains(ja4);
int status = 200;
string body = $"{{\"ja4\":\"{ja4}\",\"ja3\":\"{ja3}\",\"ja3raw\":\"{ja3raw}\"}}";
if (path.StartsWith("/login"))
{
status = allowed ? 200 : 403;
body = allowed ? "<html><body>protected page</body></html>" : "";
}
var reply = $"HTTP/1.1 {status} {(allowed || status == 200 ? "OK" : "Forbidden")}\r\nContent-Length: {body.Length}\r\nConnection: close\r\n\r\n{body}";
await ssl.WriteAsync(Encoding.ASCII.GetBytes(reply));
}
catch (Exception e)
{
Console.WriteLine($"connection failed: {e.GetType().Name}");
}
}
// Replays the bytes already read, then reads from the socket.
class Replay(byte[] first, Stream inner) : Stream
{
int pos;
public override bool CanRead => true;
public override bool CanSeek => false;
public override bool CanWrite => true;
public override long Length => throw new NotSupportedException();
public override long Position { get => throw new NotSupportedException(); set => throw new NotSupportedException(); }
public override void Flush() => inner.Flush();
public override int Read(byte[] b, int o, int c) => Read(b.AsSpan(o, c));
public override int Read(Span<byte> s)
{
if (pos >= first.Length) return inner.Read(s);
int n = Math.Min(s.Length, first.Length - pos);
first.AsSpan(pos, n).CopyTo(s);
pos += n;
return n;
}
public override ValueTask<int> ReadAsync(Memory<byte> m, CancellationToken ct = default)
{
if (pos >= first.Length) return inner.ReadAsync(m, ct);
return ValueTask.FromResult(Read(m.Span));
}
public override void Write(byte[] b, int o, int c) => inner.Write(b, o, c);
public override ValueTask WriteAsync(ReadOnlyMemory<byte> m, CancellationToken ct = default) => inner.WriteAsync(m, ct);
public override long Seek(long o, SeekOrigin s) => throw new NotSupportedException();
public override void SetLength(long v) => throw new NotSupportedException();
}Start it in its own terminal. It reads allow.txt from the folder it runs in.
# PowerShell, terminal 1: start the listener and leave it running cd Lab dotnet run
I checked it two ways. The worked example of the JA4 specification, rebuilt as real ClientHello bytes with GREASE entries added, gave the published t13d1516h2_8daaf6152771_e5627efa2ab1. One request from the default HttpClient to a public TLS echo service, the only call made to a third party, matched the listener on JA3 and JA4.
Step 2: the default HttpClient TLS fingerprint
Paste this into Probe\Program.cs and run it with dotnet run in the Probe folder. It opens four connections, because the listener closes each one after a reply.
// Probe\Program.cs: four connections from the default HttpClient.
using System.Text.Json;
var handler = new SocketsHttpHandler();
handler.SslOptions.RemoteCertificateValidationCallback = (_, _, _, _) => true; // the lab certificate is self-signed
if (args.Contains("no-resume")) handler.SslOptions.AllowTlsResume = false;
using var http = new HttpClient(handler);
for (int i = 1; i <= 4; i++)
{
var seen = JsonDocument.Parse(await http.GetStringAsync("https://localhost:12610/whoami")).RootElement;
Console.WriteLine($"{i}: {seen.GetProperty("ja4").GetString()} {seen.GetProperty("ja3").GetString()}");
}Each run used a fresh process, and net8.0 (8.0.27) and net10.0 (10.0.0) gave identical values.
| Connection | JA4 | JA3 starts (first eight hex digits) | Extensions |
|---|---|---|---|
| First of a process | t13d201100_2b729b4bf6f3_36bf25f296df | 68b3ecfa | 11 |
| Second and later | t13d201200_2b729b4bf6f3_89322cc15493 | 6ad69cec | 12 |
The twelfth extension is pre_shared_key, which Windows adds when it resumes a session. My listener offers resumption, so one client showed two fingerprints. Run the probe again with no-resume as its argument and all four connections give the first row. A server that issues no session tickets may never show the second row.
Which settings move the hash, and which cannot
I changed one setting at a time in a fresh process and read three connections. The settings table used a new HttpClient for each connection, as noted in the rows that depend on it. Results were the same on net8.0 (8.0.27) and net10.0 (10.0.0).
| Setting | What reached the listener |
|---|---|
| AllowTlsResume set to false | Removes pre_shared_key: all three connections gave the first row above |
| Protocols limited to TLS 1.2 | 18 cipher suites, 7 extensions, no supported_versions: JA4 t12d180700_4b22cbed5bed_2dae41c691ec |
| Protocols limited to TLS 1.3 | 2 cipher suites: JA4 t13d021100_62ed6f6ca7ad_36bf25f296df, then t13d021200_62ed6f6ca7ad_89322cc15493 |
| TLS 1.2 and 1.3 both listed | Same JA3 and JA4 as the default |
| Request version 2.0, lower versions allowed | With a new HttpClient for each connection: ALPN offers h2 and http/1.1, JA4 t13d2012h2_2b729b4bf6f3_36bf25f296df, then t13d2013h2_2b729b4bf6f3_89322cc15493. With one shared client only the first connection offers h2, and later ones drop the ALPN extension. |
| Request version 2.0, higher versions only | ALPN offers h2 alone. Against my HTTP/1.1 listener the handshake failed with a Win32Exception, no common application protocol |
| SslOptions.ApplicationProtocols set to http/1.1, to h2 or to empty | No change: the handler sends no ALPN extension for an HTTP/1.1 request |
| SslOptions.TargetHost set to another name | No change: a request to an IP address sent no SNI, so the JA4 was t13i201000_2b729b4bf6f3_36bf25f296df, then t13i201100_2b729b4bf6f3_89322cc15493 |
| HttpClientHandler in place of SocketsHttpHandler | Same as the default |
| SslStream used directly with http/1.1 ALPN | JA4 t13d2012h1_2b729b4bf6f3_36bf25f296df, then t13d2013h1_2b729b4bf6f3_89322cc15493 |
| WinHttpHandler (package 10.0.0 on net10.0, 8.0.3 on net8.0) | A different hello: JA4 t13d201200_2b729b4bf6f3_e24568c0d440, 12 extensions with status_request. With a shared handler the second and later connections add pre_shared_key: t13d201300_2b729b4bf6f3_1ea369dc5faa. |
| CipherSuitesPolicy | The constructor throws PlatformNotSupportedException, saying the policy is not supported on this platform |
A hand-built HttpRequestMessage keeps its own version of 1.1, so DefaultRequestVersion changed nothing for it, and only GetAsync and its siblings used it. The handler sets SslOptions.ApplicationProtocols and SslOptions.TargetHost from the request, so my values were ignored. CipherSuitesPolicy fails loudly, and the build warns with CA1416 that it is unsupported on Windows. Assigning null is silent and changes nothing.
In every SocketsHttpHandler and SslStream run that offered TLS 1.3 the extensions kept one fixed order, 0000, 002b, 000d, 0023, 000a, 000b, 0033, 0031, 0017, ff01 and 002d, with 0010 after 000b when ALPN is sent and 0029 last when present. The TLS 1.2 only hello used a different fixed layout, 0000, 000a, 000b, 000d, 0023, 0017 and ff01. Windows picked each layout, not a setting, and the cipher suites kept their order. Settings added or removed extensions, and none of them let me choose an order. I found no managed setting that turns this hello into a Chrome hello. The .NET documentation says the handshake comes from the operating system TLS library, which I did not test separately.
Step 3: what Chrome sends, and why JA3 is the wrong thing to match
Run this one with dotnet run in the BrowserProbe folder. It loads the whoami page twelve times in Chrome and counts the distinct hashes.
// BrowserProbe\Program.cs: dotnet add package Microsoft.Playwright
using System.Text.Json;
using Microsoft.Playwright;
using var playwright = await Playwright.CreateAsync();
await using var browser = await playwright.Chromium.LaunchAsync(new() { Channel = "chrome" });
var context = await browser.NewContextAsync(new() { IgnoreHTTPSErrors = true });
var page = await context.NewPageAsync();
// Twelve page loads: the browser's own network stack sends each one.
var ja3s = new HashSet<string>();
var ja4s = new HashSet<string>();
for (int i = 0; i < 12; i++)
{
await page.GotoAsync($"https://localhost:12610/whoami?load={i}");
var seen = JsonDocument.Parse(await page.InnerTextAsync("body")).RootElement;
ja3s.Add(seen.GetProperty("ja3").GetString()!);
ja4s.Add(seen.GetProperty("ja4").GetString()!);
}
Console.WriteLine($"page loads: {ja3s.Count} different JA3, {ja4s.Count} different JA4");
// The same question asked through Playwright's request API.
var reply = await context.APIRequest.GetAsync("https://localhost:12610/whoami");
var api = JsonDocument.Parse(await reply.TextAsync()).RootElement;
Console.WriteLine($"APIRequest: {api.GetProperty("ja4").GetString()}");Twenty runs on Chrome 157.0.8103.78 (ten per runtime) gave 12 different JA3 hashes each and 1 JA4 each. Chrome shuffles the extension order on every connection, so a JA3 allow list cannot hold a browser. The listener console counts the extra connections Chrome opens: with this Lab, 12 page loads logged 51 to 60 Chrome ClientHellos in those runs, every one with a different JA3 and only two JA4 values, t13d1517h2_8daaf6152771_cb7bf5808d99 and t13d1518h2_8daaf6152771_e2d80978ab2e. The second adds pre_shared_key, as with HttpClient, and a rerun by a second person once printed two JA4 values, so expect one or two. Lines saying connection failed: AuthenticationException are those extra connections and are harmless. My mock rule matches those two JA4 values, so read yours from whoami first.
# PowerShell, in the Lab folder: let the two Chrome JA4 values through Set-Content allow.txt "t13d1517h2_8daaf6152771_cb7bf5808d99", "t13d1518h2_8daaf6152771_e2d80978ab2e"
Chrome for Testing 157.0.8103.78 and Playwright Chromium 159.0.8154.6 (chromium channel) gave the same two JA4 values. The default headless shell gave t13d1516h2_8daaf6152771_806a8c22fdea and t13d1517h2_8daaf6152771_a87ad97598a9, one extension fewer, and my rule blocked it, so this guide sets the Chrome channel.
Step 4: the Playwright request API is not the browser
The last line of BrowserProbe shows the trap: the Playwright request API, through a standalone context, a browser context or a page, sent JA4 t13d521100_b262b3658495_8e6e362c5eac in every run: 52 cipher suites, 11 extensions, JA3 starting 944d1e18. That is a Node.js handshake: plain Node.js 24.22.0 and the bundled driver, v26.13.1, gave the identical JA3 and JA4, and all four browser builds gave the same answer. A fetch inside the page used the Chromium handshake. The browser helps only if the request leaves from the page.
Against my mock rule on /login, the results were these.
| How the request left | Answer from the mock |
|---|---|
| HttpClient, GET and form post | 403, empty body, both |
| Playwright request API, form post from a Chrome context | 403, empty body |
| Page load in Chrome | 200 with the form |
| Form post by fetch inside that page | 200, token accepted. It was the token that the two blocked tries had sent, which they had not spent |
| Page load in the default headless shell | 403 |
| Page load and fetch in Playwright Chromium, chromium channel | 200, token accepted |
Run this with dotnet run in the Blocked folder. It sends the first row of that table and stands in for a real site, which proves nothing about one.
// Blocked\Program.cs: the default HttpClient against the rule in the listener.
var handler = new HttpClientHandler { ServerCertificateCustomValidationCallback = (_, _, _, _) => true };
using var http = new HttpClient(handler);
var form = new FormUrlEncodedContent(new Dictionary<string, string> { ["user"] = "demo", ["g-recaptcha-response"] = "any-token" });
var page = await http.GetAsync("https://localhost:12610/login");
var post = await http.PostAsync("https://localhost:12610/login", form);
Console.WriteLine($"GET {(int)page.StatusCode}, form post {(int)post.StatusCode}");Step 5: solve in CapSkip, send the form post from the page
The fix I measured is a browser hop: the page opens in Chrome, so the handshake is Chrome. RecaptchaAsync(sitekey, url, options, cancellationToken) on CapSkipClient returns a SolveResult whose Code property holds the token for the g-recaptcha-response field. A fetch inside the page then sends the form post through the same network stack. My mock site accepted a token once, and only if the mock CapSkip had issued it. The Lab above serves only a plain page for /login. To run Flow you need a page with a g-recaptcha element and a CapSkip answering on port 8080. My results came from a larger version of the Lab that I did not print, which serves the form and a mock in.php and res.php.
// Program.cs of the Flow project: dotnet add package CapSkip; dotnet add package Microsoft.Playwright
using CapSkip;
using Microsoft.Playwright;
const string LoginUrl = "https://localhost:12610/login"; // your protected page goes here
// Local mode. In Server mode, put your CapSkip machine's address in host.
var solver = new CapSkipClient(host: "127.0.0.1", port: 8080);
using var budget = new CancellationTokenSource(TimeSpan.FromMinutes(2));
using var playwright = await Playwright.CreateAsync();
await using var browser = await playwright.Chromium.LaunchAsync(new() { Channel = "chrome" });
var context = await browser.NewContextAsync(new() { IgnoreHTTPSErrors = true }); // only for the self-signed lab
var page = await context.NewPageAsync();
try
{
// 1. Open the page in the browser, so the handshake is the browser's own.
await page.GotoAsync(LoginUrl);
var sitekey = await page.GetAttributeAsync(".g-recaptcha", "data-sitekey")
?? throw new InvalidOperationException("no reCAPTCHA widget on the page");
// 2. Ask CapSkip for a token for that sitekey and the page address.
SolveResult solved = await solver.RecaptchaAsync(sitekey, page.Url, cancellationToken: budget.Token);
// 3. Send the form post from inside the page: Chromium's network stack sends it.
var reply = await page.EvaluateAsync<string[]>(
@"async (token) => {
const body = new URLSearchParams({ user: 'demo', 'g-recaptcha-response': token });
const r = await fetch('/login', { method: 'POST', body });
return [String(r.status), await r.text()];
}",
solved.Code);
Console.WriteLine($"{reply[0]} {reply[1]}");
}
catch (CapSkip.TimeoutException)
{
Console.WriteLine("CapSkip did not return a token before its own timeout");
}
catch (OperationCanceledException)
{
Console.WriteLine("the 2 minute budget ran out first");
}
catch (CapSkipError e)
{
Console.WriteLine($"CapSkip said: {e.Message}");
}Four details came from runs against the mock CapSkip.
- The sitekey is the data-sitekey of the g-recaptcha element, and the page address is the page holding the widget.
- With a cancellation token that fired after 3 seconds, the call threw TaskCanceledException after 3.01 seconds (net10.0). It derives from OperationCanceledException, which the block catches.
- With recaptchaTimeout set to 6 and a mock that never answered, CapSkip.TimeoutException arrived after 7.85, 7.86 and 7.85 seconds (net10.0, three runs). The default is 300. The SDK checks the clock after each wait, so it fires late.
- A bare catch of TimeoutException does not compile, because the console template imports System implicitly. The compiler reports CS0104, an ambiguous reference between CapSkip.TimeoutException and System.TimeoutException. Qualify it, as the block does.
The Flow block printed 200 and the accepted-token page on net8.0 (8.0.27) and net10.0 (10.0.0) against that larger mock. A closed port gave a NetworkException. None of this shows how long a real solve takes or that a real site accepts the token.
What none of this fixes, and what rests on documentation
CapSkip does not change a JA3, a JA4 or any other fingerprint. It solves the CAPTCHA that was served. The browser hop sends the Chrome handshake, but Playwright launched Chrome with the User-Agent HeadlessChrome/157.0.0.0, which my larger lab logged and I left unchanged, so a site that reads the User-Agent or the rest of the browser sees that too. A matching handshake says nothing about your IP address or your behaviour. If a site shows a challenge anyway, read it with the guide on telling a CAPTCHA from a block. I measured only the ClientHello. The Python guide to TLS fingerprinting takes the library-swap route.
I also tried one third-party NuGet package, HttpCloak 1.7.4, which I did not audit. Its latest Chrome preset gave exactly the Chrome JA4 t13d1517h2_8daaf6152771_cb7bf5808d99 on the first connection, with a different JA3 each time. Its next five connections dropped HTTP/2 (my listener cannot speak it) and were blocked. I did not test its HTTP/2 layer.
Four statements here rest on documentation or source, not on a run: Cloudflare documents JA3 and JA4, FoxIO specifies JA4, the .NET documentation says the handshake comes from the operating system TLS library, and CapSkip opens its port in Server mode.
FAQ
Can I change the HttpClient TLS fingerprint in C#?
Only in small ways. On Windows I could add or drop an extension, such as resumption, ALPN or SNI. I could not choose the order, and CipherSuitesPolicy threw.
Why does the JA3 of Chrome change on every connection?
Chrome shuffles its extensions, and JA3 hashes them in the order sent. In my runs, 12 page loads gave 12 JA3 hashes and one or two JA4 values.
Does CapSkip change my HttpClient TLS fingerprint?
No. CapSkip returns a token for the CAPTCHA the site served. Your code decides which network stack sends it.
Can CapSkip run in Server mode for this?
Yes. Server mode runs CapSkip on a Windows machine you control. Put its address in host and Flow works from any PC that can reach it, as the connection settings describe. I tested no second machine. Server mode opens the CapSkip port to every address, so an allow rule of your own restricts nothing; add a Windows Firewall block rule for the machines you do not expect.
Capture the HttpClient TLS fingerprint first, because it tells you whether HttpClient is the problem, and send the protected hop from a browser when it is. With the token from a flat-license captcha solver on your own Windows PC, a retry costs seconds. The C# CAPTCHA solver page lists the other types, and the reCAPTCHA v2 guide for C# covers the widget.
