API Call in a SIM test

Send an HTTP request over the SIM's data connection and check the response status, body, headers and timing.

Test your APIs exactly as a mobile client reaches them, through the mobile network. Set the method, headers and body, then assert on the response and read the full timing breakdown, from the DNS lookup to the last byte.

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