Skip to main content
The Capture HAR File command (Command Type: 23) captures a HAR file from the browser, recording all network requests and responses made during the capture period.

Command Type

Command Type ID: 23

Parameters

ParameterTypeDescriptionRequired
timeoutnumberTimeout in milliseconds (defines the capture duration)Yes

Usage Examples

Capture HAR for 10 Seconds

{
  "command": "capture-har-file",
  "params": {
    "timeout": 10000
  }
}

Common Use Cases

  • Network Debugging: Capture all XHR/fetch calls made by a page during load
  • API Discovery: Identify undocumented API endpoints by observing network traffic
  • Performance Analysis: Record timing information for all network requests