Skip to content

saveresponse.js

Mark Watson edited this page Nov 12, 2016 · 1 revision
var b = pizza.open("www.google.com");

// The page has loaded at this point, find the first requesting matching google.com
var r = pizza.getRequestByUrl("www.google.com/");

// Fetch the HTTP response body.
var data = b.getResponseBody(r);

// Save that to a file.  This file will be attached to the results for this script.
pizza.saveFile("google.html", data);

Clone this wiki locally