http_request
Performs HTTP requests (GET, POST, PUT, DELETE, etc.) to any URL. Returns status, headers, body, and elapsed time. Supports JSON, XML, form-data, and plain text payloads.
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 |