pare-http
v0.24.2Pare HTTP ג€” Structured HTTP request operations (GET, POST, HEAD) as typed JSON.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
request HTTP Request
Makes an HTTP request via curl and returns structured response data (status, headers, body, timing). SECURITY: URLs targeting private/reserved IPs are blocked (SSRF protection). The proxy parameter routes traffic through an external proxy — use only with trusted proxies. File uploads via form @filepath are blocked by default (set PARE_HTTP_ALLOW_FILE_UPLOAD=true to allow).
| Parameter | Type | Description |
|---|---|---|
url * | string | The URL to request (http:// or https:// only) |
basicAuth | string | Basic auth credentials as 'user:password' (-u) |
body | string | Request body (for POST, PUT, PATCH) |
compact | boolean | Prefer compact output |
compressed | boolean | Request compressed response and decompress automatically (--compressed) |
connectTimeout | number | Maximum time in seconds for connection phase only (--connect-timeout). Independent of total timeout. |
cookie | string | Cookie string for session-based APIs (-b). Format: 'name=value; name2=value2'. Must contain '=' — file-based cookie jars are not supported. |
followRedirects | boolean | Follow HTTP redirects (default: true) |
form | object | Multipart form data as key-value pairs (-F). Each pair maps to `-F key=value`. File uploads via @filepath are blocked by default — set PARE_HTTP_ALLOW_FILE_UPLOAD=true to allow. |
headers | object | Request headers as key-value pairs |
httpVersion | string | HTTP version to use: '1.0', '1.1', or '2' (--http1.0/--http1.1/--http2) |
insecure | boolean | Allow insecure TLS connections, e.g. self-signed certificates (-k) |
method | string | HTTP method (default: GET) |
path | string | Working directory |
proxy | string | Proxy URL (e.g., http://proxy:8080) (-x). SECURITY WARNING: Routes all traffic through this proxy. Only use trusted proxies — a malicious proxy can intercept and modify all request/response data (Mi… |
resolve | string | Custom DNS resolution (--resolve). Format: 'host:port:addr' (e.g., 'example.com:443:127.0.0.1') |
retry | number | Number of retries on transient failures (--retry) |
timeout | number | Request timeout in seconds (default: 30) |
get HTTP GET
Makes an HTTP GET request via curl and returns structured response data. Convenience wrapper for the request tool. SECURITY: URLs targeting private/reserved IPs are blocked (SSRF protection). The proxy parameter routes traffic through an external proxy — use only with trusted proxies.
| Parameter | Type | Description |
|---|---|---|
url * | string | The URL to request (http:// or https:// only) |
basicAuth | string | Basic auth credentials as 'user:password' (-u) |
compact | boolean | Prefer compact output |
compressed | boolean | Request compressed response and decompress automatically (--compressed) |
connectTimeout | number | Maximum time in seconds for connection phase only (--connect-timeout). Detects connection failures fast. |
followRedirects | boolean | Follow HTTP redirects (default: true) |
headers | object | Request headers as key-value pairs |
httpVersion | string | HTTP version to use: '1.0', '1.1', or '2' (--http1.0/--http1.1/--http2) |
insecure | boolean | Allow insecure TLS connections, e.g. self-signed certificates (-k) |
path | string | Working directory |
proxy | string | Proxy URL (e.g., http://proxy:8080) (-x). SECURITY WARNING: Routes all traffic through this proxy. Only use trusted proxies — a malicious proxy can intercept and modify all request/response data (Mi… |
queryParams | object | Query parameters as key-value pairs. URL-encoded and appended to the URL automatically. |
resolve | string | Custom DNS resolution (--resolve). Format: 'host:port:addr' (e.g., 'example.com:443:127.0.0.1') |
retry | number | Number of retries on transient failures (--retry) |
timeout | number | Request timeout in seconds (default: 30) |
post HTTP POST
Makes an HTTP POST request via curl and returns structured response data. Convenience wrapper for the request tool with required body. SECURITY: URLs targeting private/reserved IPs are blocked (SSRF protection). File uploads via form @filepath are blocked by default (set PARE_HTTP_ALLOW_FILE_UPLOAD=true to allow). The proxy parameter routes traffic through an external proxy — use only with trusted proxies.
| Parameter | Type | Description |
|---|---|---|
url * | string | The URL to request (http:// or https:// only) |
accept | string | Expected response format via Accept header (e.g., 'application/json') |
basicAuth | string | Basic auth credentials as 'user:password' (-u) |
body | string | Request body. Ignored when `form` is provided. |
compact | boolean | Prefer compact output |
compressed | boolean | Request compressed response and decompress automatically (--compressed) |
connectTimeout | number | Maximum time in seconds for connection phase only (--connect-timeout). Detects connection failures fast. |
contentType | string | Content-Type header (default: application/json). Ignored when `form` is provided. |
dataUrlencode | array | URL-encoded form data items (--data-urlencode). Each item is 'key=value'. Use instead of manual URL encoding. |
followRedirects | boolean | Follow HTTP redirects (default: true) |
form | object | Multipart form data as key-value pairs (-F). Each pair maps to `-F key=value`. File uploads via @filepath are blocked by default — set PARE_HTTP_ALLOW_FILE_UPLOAD=true to allow. When provided, `body… |
headers | object | Request headers as key-value pairs |
httpVersion | string | HTTP version to use: '1.0', '1.1', or '2' (--http1.0/--http1.1/--http2) |
insecure | boolean | Allow insecure TLS connections, e.g. self-signed certificates (-k) |
path | string | Working directory |
preserveMethodOnRedirect | boolean | Preserve POST method on 301/302/303 redirects instead of converting to GET (--post301/--post302/--post303) |
proxy | string | Proxy URL (e.g., http://proxy:8080) (-x). SECURITY WARNING: Routes all traffic through this proxy. Only use trusted proxies — a malicious proxy can intercept and modify all request/response data (Mi… |
timeout | number | Request timeout in seconds (default: 30) |
head HTTP HEAD
Makes an HTTP HEAD request via curl and returns structured response headers (no body). Use to check resource existence, content type, or cache headers. SECURITY: URLs targeting private/reserved IPs are blocked (SSRF protection). The proxy parameter routes traffic through an external proxy — use only with trusted proxies.
| Parameter | Type | Description |
|---|---|---|
url * | string | The URL to request (http:// or https:// only) |
basicAuth | string | Basic auth credentials as 'user:password' (-u) |
compact | boolean | Prefer compact output |
connectTimeout | number | Maximum time in seconds for connection phase only (--connect-timeout). Fast failure for availability probing. |
followRedirects | boolean | Follow HTTP redirects (default: true) |
headers | object | Request headers as key-value pairs |
httpVersion | string | HTTP version to use: '1.0', '1.1', or '2' (--http1.0/--http1.1/--http2) |
insecure | boolean | Allow insecure TLS connections, e.g. self-signed certificates (-k) |
path | string | Working directory |
proxy | string | Proxy URL (e.g., http://proxy:8080) (-x). SECURITY WARNING: Routes all traffic through this proxy. Only use trusted proxies — a malicious proxy can intercept and modify all request/response data (Mi… |
resolve | string | Custom DNS resolution (--resolve). Format: 'host:port:addr' (e.g., 'example.com:443:127.0.0.1') |
retry | number | Number of retries on transient failures (--retry) |
timeout | number | Request timeout in seconds (default: 30) |