httpreq
Execute HTTP requests (GET, POST, etc.) to test APIs, webhooks, and web services. Supports custom headers, body, proxies, with SSRF protection.
Instructions
Execute HTTP requests with any method (GET, POST, PUT, PATCH, DELETE, HEAD, OPTIONS). Ideal for testing APIs, webhooks, and web services during development. Features: ECH (Encrypted Client Hello) and DoH (DNS over HTTPS) enabled by default. Supports custom headers, request body, and HTTP/SOCKS5 proxies. SSRF protection blocks private/internal IPs. Response body is truncated at max_response_kb. For fetching web pages as text, use webfetch. For downloading files, use download.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | URL to send the request to,required | |
| method | Yes | HTTP method: GET, POST, PUT, PATCH, DELETE, HEAD, OPTIONS,required | |
| body | No | Request body (string). Typically JSON for API calls | |
| headers | No | Custom HTTP headers (e.g. Authorization, Accept) | |
| content_type | No | Content-Type header. Default: application/json | |
| timeout_sec | No | Request timeout in seconds. Default: 30, Max: 120 | |
| proxy_url | No | HTTP or SOCKS5 proxy URL (e.g. http://proxy:8080, socks5://proxy:1080) | |
| no_doh | No | Disable DNS over HTTPS: true or false. Default: false (DoH enabled) | |
| no_ech | No | Disable Encrypted Client Hello: true or false. Default: false (ECH enabled) | |
| max_response_kb | No | Maximum response body size in KB. Default: 512, Max: 2048 |