← Back to Network domain

Network.continueInterceptedRequest

Response to Network.requestIntercepted which either modifies the request to continue with any modifications, or blocks it, or completes it with the provided response bytes. If a network fetch occurs as a result which encounters a redirect an additional Network.requestIntercepted event will be sent with the same InterceptionId. Deprecated, use Fetch.continueRequest, Fetch.fulfillRequest and Fetch.failRequest instead.

Domain: Network deprecated

Parameters

NameTypeDescription
interceptionIdInterceptionId
errorReason (optional)ErrorReasonIf set this causes the request to fail with the given reason. Passing `Aborted` for requests marked with `isNavigationRequest` also cancels the navigation. Must not be set in response to an authChallenge.
rawResponse (optional)stringIf set the requests completes using with the provided base64 encoded raw response, including HTTP status line and headers etc... Must not be set in response to an authChallenge. (Encoded as a base64 string when passed over JSON)
url (optional)stringIf set the request url will be modified in a way that's not observable by page. Must not be set in response to an authChallenge.
method (optional)stringIf set this allows the request method to be overridden. Must not be set in response to an authChallenge.
postData (optional)stringIf set this allows postData to be set. Must not be set in response to an authChallenge.
headers (optional)HeadersIf set this allows the request headers to be changed. Must not be set in response to an authChallenge.
authChallengeResponse (optional)AuthChallengeResponseResponse to a requestIntercepted with an authChallenge. Must not be set otherwise.

Example Request

{
  "id": 1,
  "method": "Network.continueInterceptedRequest",
  "params": {
    "interceptionId": "interceptionId-value"
  }
}

Example Response

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

Usage in Node.js

const result = await send('Network.continueInterceptedRequest', {"interceptionId": "interceptionId-value"});
console.log(result);