Tests interception for redirects in a chain but rewrite last response.
Test Ready.
Request interception patterns sent.
Request Intercepted: redirect1.php
responseErrorReason: undefined
responseStatusCode: undefined
responseHeaders: <None>
Continuing a request to http://127.0.0.1:8000/inspector-protocol/resources/redirect1.php
responseBody:
Error<Can only get response body on requests captured after headers received.>
Request Intercepted: redirect1.php
responseErrorReason: undefined
responseStatusCode: 307
responseHeaders:
Cache-Control: no-cache, must-revalidate
Connection: Keep-Alive
Content-Length: 0
Content-Type: text/html
Date: <Masked>
Expires: <Masked>
Keep-Alive: <Masked>
Location: redirect2.php
Pragma: no-cache
Server: <Masked>
redirectUrl: redirect2.php
Continuing a request to http://127.0.0.1:8000/inspector-protocol/resources/redirect1.php
responseBody:
Error<Can only get response body on requests captured after headers received.>
Request Intercepted: redirect2.php
responseErrorReason: undefined
responseStatusCode: undefined
responseHeaders: <None>
Continuing a request to http://127.0.0.1:8000/inspector-protocol/resources/redirect2.php
responseBody:
Error<Can only get response body on requests captured after headers received.>
Request Intercepted: redirect2.php
responseErrorReason: undefined
responseStatusCode: 307
responseHeaders:
Cache-Control: no-cache, must-revalidate
Connection: Keep-Alive
Content-Length: 0
Content-Type: text/html
Date: <Masked>
Expires: <Masked>
Keep-Alive: <Masked>
Location: final.html
Pragma: no-cache
Server: <Masked>
redirectUrl: final.html
Continuing a request to http://127.0.0.1:8000/inspector-protocol/resources/redirect2.php
responseBody:
Error<Can only get response body on requests captured after headers received.>
Request Intercepted: final.html
responseErrorReason: undefined
responseStatusCode: undefined
responseHeaders: <None>
Continuing a request to http://127.0.0.1:8000/inspector-protocol/resources/final.html
responseBody:
Error<Can only get response body on requests captured after headers received.>
Modifying final.html's response after we receive response.
Modifying request with new body.
Body content received by renderer for final.html:
<html>
<body>This content was rewritten!</body>
</html>