sendHttpRequest
Send HTTP/HTTPS requests and retrieve response status, headers, and body. Supports common methods, custom headers, body, timeout, and redirect following.
Instructions
HTTP/HTTPS request → status, headers, body. Body truncated at maxResponseBytes (default 50 KB).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| method | Yes | HTTP method | |
| url | Yes | Full URL (http:// or https://) | |
| headers | No | Optional request headers as key/value pairs | |
| body | No | Request body. JSON: pass serialized string + Content-Type: application/json. Ignored for GET/HEAD. | |
| timeoutMs | No | Timeout in ms (default: 30000, max: 120000) | |
| maxResponseBytes | No | Body cap in bytes (default: 51200, max: 1048576). | |
| followRedirects | No | Follow HTTP redirects (max 10 hops, default: true) |