Network & File Transfers

Get Captured Calls

Hands back what the recorder holds as json: capturing, the filter in force, how many older calls were dropped, and the calls themselves. Each call carries url, method, type, postData, initiator, status and the headers the browser actually sent. Recording continues, so asking twice is how a workflow watches a page rather than a way of ending the capture. No parameters.

Examples

GPAL Fluent: High-level fluent C# API

browser.CaptureCalls(out List<GPALCall> calls);

MagicHelper: MagicHelper utility library

string json = browser.MagicHelper.GetCapturedCalls();

Puppeteer Client: Puppeteer-style C# client

//The calls arrived as events while recording was on, so nothing is asked of the browser to read them back.

// PuppeteerCommunicator handles capture. See below.

Puppeteer Communicator: Low-level communicator

//Hands back a copy, so reading it is never reading what the browser is still writing. Already typed as GPALCall, where the extension route answers with json that GPAL parses into the same shape.

List<GPALCall> calls = browser.PuppeteerCommunicator.GetCapturedCalls();

REST Client: Direct REST/HTTP client

browser.OttoMagicClient.GetCapturedCalls().Execute();

💬 Ask GPAL