API Call in a SIM test

Send an HTTP request over the cellular connection and verify the response.

Send a full HTTP request (method, headers, body) over the SIM's data connection and verify the response: status code, body content, headers, and the complete timing breakdown. Test your APIs exactly as a mobile client reaches them.

Parameters

ParameterRequiredDescription
HTTP MethodYesGET (default), POST, PUT, PATCH, DELETE, OPTIONS, HEAD.
URLYesThe endpoint to call. Supports variables.
HeadersNoKey/value list (Authorization, Content-Type...).
BodyNoRequest body, for methods that send one.
Follow redirectNoFollow 3xx responses. Default: on.
Ignore SSL certificateNoSkip certificate verification. Default: off.
Enable cookiesNoKeep cookies across redirects. Default: off.
Web access should failNoInvert the verdict.

Plus the shared connection settings and DNS override. The action ships with a default assertion: status_code == 200.

Results and metrics

In the action report (result):

FieldDescription
status_codeHTTP status of the response.
bodyResponse body. Assert on it or extract values into variables.
headerResponse headers.
dnslookup_duration, tcpconnection_duration, appconnect_duration, starttransfer_duration, contenttransfer_duration, total_durationThe timing waterfall: DNS, TCP, TLS, time to first byte, transfer, total.
durationTotal execution time in seconds.

In Analytics, each run feeds the HTTP API measurement with the full waterfall durations and duration_seconds, tagged by status, URL, HTTP method, status code, APN, antenna, and access technology.

What's next?

HTTP Ping

Just the latency, repeated N times

Check SSL/TLS Certificate

Verify the endpoint's certificate separately

Last updated on