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โ
- YAML
- JSON
- XML
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
{
"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"
}
<httpSniffer>
<chainedProxy>
<credentials>
<password>string</password>
<passwordKey/>
<username>string</username>
</credentials>
<host>
<name>string</name>
<port>0</port>
</host>
<realm>string</realm>
<scheme>string</scheme>
</chainedProxy>
<host>string</host>
<maxBufferSize>0</maxBufferSize>
<networkInterface>string</networkInterface>
<port>0</port>
<requestHeaders/>
<responseTimeout>0</responseTimeout>
<userAgent>string</userAgent>
</httpSniffer>
Propertiesโ
| Property | Type | Required | Default |
|---|---|---|---|
chainedProxy | ProxySettings | No | - |
host | string | No | - |
maxBufferSize | integer | No | - |
networkInterface | string | No | - |
port | integer | No | - |
requestHeaders | Record<string, string> | No | - |
responseTimeout | integer | No | - |
userAgent | string | No | - |
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.