Skip to main content

HttpSniffer

A local proxy that intercepts browser HTTP traffic for inspection.

Notes

Operates as a local proxy that intercepts HTTP traffic from a browser-based fetcher (such as a WebDriver fetcher) to capture request and response details. Supports custom request headers, buffer size limits, and optional chained proxy configuration.

Usage

chainedProxy:
credentials:
password: string
passwordKey: {}
username: string
host:
name: string
port: 0
realm: string
scheme: string
host: string
maxBufferSize: 0
networkInterface: string
port: 0
requestHeaders: {}
responseTimeout: 0
userAgent: string

Properties

PropertyTypeRequiredDefault
chainedProxyProxySettingsNo-
hoststringNo-
maxBufferSizeintegerNo-
networkInterfacestringNo-
portintegerNo-
requestHeadersRecord<string, string>No-
responseTimeoutintegerNo-
userAgentstringNo-

Property Details

chainedProxy

Configure the HTTP Sniffer to go through a proxy.

host

Host name to use to access the HTTP sniffer as a proxy. Default is "localhost".

maxBufferSize

Maximum byte size before a request/response content is considered too large.

networkInterface

The network interface address (IP) for the sniffer proxy to listen on for incoming connections. Defaults to 0.0.0.0 (all interfaces).

port

Port under which to run the HTTP sniffer as a proxy. Use zero (0) for a random port.

requestHeaders

HTTP request headers to be added to every browser requests.

responseTimeout

The maximum time to wait for the target host to respond before timing out. Default is 2 minutes.

userAgent

Overwrite the browser user agent.