Skip to content

Choose an interface

Use the same engine from the command line, an SDK, or a local proxy.

Every interface uses the same engine and an executable JSON profile. They differ in orchestration and diagnostics.

Capability CLI Go Node.js Python Local proxy
One GET or POST fetch Get / Do get / post / request get / post / request Caller sends HTTP(S)
Browser context --request-kind Request.Browser browserContext browser_context Incoming browser request metadata
Upstream proxy --proxy / --proxy-env WithProxy proxy option proxy option proxy --proxy
Cookies --cookie, files client/request options constructor/request options constructor/request options Caller-managed
URL list and concurrency Built in Application code Application code / client pool Application code / client pool Caller-managed
Capture and compare Commands Measurement API CLI invocation CLI invocation No
HTML/JSON report, trace, PCAPNG Built in Trace and key-log APIs Application code Application code No CLI report writer
Low-level daemon protocol daemon daemon package Used internally Used internally No

Same task, four ways

All four examples request a response from https://example.com/ using the chrome profile.

tls-forge fetch --profile chrome --print-body https://example.com/
1
2
3
4
client, err := tlsforge.New(tlsforge.WithProfile("chrome"))
if err != nil { return err }
defer client.Close()
response, err := client.Get("https://example.com/")
1
2
3
const client = new Client({ profile: 'chrome' });
try { const response = await client.get('https://example.com/'); }
finally { client.close(); }
with tlsforge.Client(profile="chrome") as client:
    response = client.get("https://example.com/")

For a POST, supply a real browser context. SDKs do not inherit every CLI feature; the table identifies where the application must own the equivalent work.