http_request
Perform any HTTP request (GET, POST, PUT, PATCH, DELETE, HEAD, OPTIONS) with JSON or raw payloads and receive status, headers, body, and timing.
Instructions
Universal HTTP client. Performs GET, POST, PUT, PATCH, DELETE, HEAD, OPTIONS requests. Use body_json for JSON APIs (auto-serializes + sets Content-Type: application/json). Use body for raw payloads (XML, form-data, plain text). Works with remote URLs, localhost, and internal network addresses. Returns status, headers, body, and elapsed time.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | ||
| method | No | GET | |
| headers | No | ||
| body | No | ||
| body_json | No | ||
| timeout_ms | No | ||
| max_bytes | No |