← Back to Network domain

Network.replayXHR

This method sends a new XMLHttpRequest which is identical to the original one. The following parameters should be identical: method, url, async, request body, extra headers, withCredentials attribute, user, password.

Domain: Network experimental

Parameters

NameTypeDescription
requestIdRequestIdIdentifier of XHR to replay.

Example Request

{
  "id": 1,
  "method": "Network.replayXHR",
  "params": {
    "requestId": "request-1"
  }
}

Example Response

{
  "id": 1,
  "result": {}
}

Usage in Node.js

const result = await send('Network.replayXHR', {"requestId": "request-1"});
console.log(result);