http_request
Send RESTful HTTP requests with automatic credential and cookie injection from the active environment. Evaluate assertions and log request/response details to the history database.
Instructions
Send a RESTful HTTP request. Automatically injects credentials and cookies from the active environment. Evaluates assertions and logs request/response details to history database.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | Request path or full URL | |
| body | No | Request payload (string or stringified JSON) | |
| method | No | HTTP method (GET, POST, PUT, DELETE, PATCH, HEAD, OPTIONS, or any custom method) | GET |
| params | No | ||
| headers | No | ||
| timeout | No | Request timeout in ms (overrides environment default) | |
| bodyType | No | json | |
| cacheTtl | No | Cache TTL in ms for GET/HEAD requests. Same URL within TTL returns cached response. Saves network calls. | |
| assertions | No | ||
| fileFields | No | File uploads: {"fieldName": "/path/to/file"} for form-data body type | |
| retryCount | No | Auto-retry count on network errors or 5xx (default: 0) | |
| retryDelay | No | Delay between retries in ms (default: 1000) | |
| returnBody | No | Set false to skip response body (silent mode). Returns only status + duration. Saves tokens. | |
| assertBefore | No | Conditional request: only return full response if condition is met (saves tokens on failures) | |
| jsonpathFilter | No | Extract specific parts of response payload | |
| confirmFileAccess | No | Must be true when fileFields reads local files | |
| maxResponseLength | No | Max response body length in chars (default: 15000). Set higher for full responses, lower to save tokens. |