http_request
Send HTTP requests, including to localhost and private addresses, then validate status, JSON values, body substrings, and latency with PASS/FAIL results.
Instructions
Send an HTTP request (localhost and private addresses allowed) and report status, timing, redacted headers and a truncated body. Optional assertions: expect_status, expect_json ({"data.items[0].id": 5} path->value), expect_contains (substring of body), max_latency_ms. Result begins with PASS/FAIL when assertions are given.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | ||
| body | No | ||
| method | No | GET | |
| params | No | ||
| headers | No | ||
| timeout | No | ||
| json_body | No | ||
| verify_tls | No | ||
| expect_json | No | ||
| expect_status | No | ||
| max_latency_ms | No | ||
| expect_contains | No | ||
| follow_redirects | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |