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.