pare-http

v0.24.2
io.github.Dave-London/pare-http Checked 1 hour ago Published 3 days ago

Pare 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).

ParameterTypeDescription
url *stringThe URL to request (http:// or https:// only)
basicAuthstringBasic auth credentials as 'user:password' (-u)
bodystringRequest body (for POST, PUT, PATCH)
compactbooleanPrefer compact output
compressedbooleanRequest compressed response and decompress automatically (--compressed)
connectTimeoutnumberMaximum time in seconds for connection phase only (--connect-timeout). Independent of total timeout.
cookiestringCookie string for session-based APIs (-b). Format: 'name=value; name2=value2'. Must contain '=' — file-based cookie jars are not supported.
followRedirectsbooleanFollow HTTP redirects (default: true)
formobjectMultipart 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.
headersobjectRequest headers as key-value pairs
httpVersionstringHTTP version to use: '1.0', '1.1', or '2' (--http1.0/--http1.1/--http2)
insecurebooleanAllow insecure TLS connections, e.g. self-signed certificates (-k)
methodstringHTTP method (default: GET)
pathstringWorking directory
proxystringProxy 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…
resolvestringCustom DNS resolution (--resolve). Format: 'host:port:addr' (e.g., 'example.com:443:127.0.0.1')
retrynumberNumber of retries on transient failures (--retry)
timeoutnumberRequest 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.

ParameterTypeDescription
url *stringThe URL to request (http:// or https:// only)
basicAuthstringBasic auth credentials as 'user:password' (-u)
compactbooleanPrefer compact output
compressedbooleanRequest compressed response and decompress automatically (--compressed)
connectTimeoutnumberMaximum time in seconds for connection phase only (--connect-timeout). Detects connection failures fast.
followRedirectsbooleanFollow HTTP redirects (default: true)
headersobjectRequest headers as key-value pairs
httpVersionstringHTTP version to use: '1.0', '1.1', or '2' (--http1.0/--http1.1/--http2)
insecurebooleanAllow insecure TLS connections, e.g. self-signed certificates (-k)
pathstringWorking directory
proxystringProxy 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…
queryParamsobjectQuery parameters as key-value pairs. URL-encoded and appended to the URL automatically.
resolvestringCustom DNS resolution (--resolve). Format: 'host:port:addr' (e.g., 'example.com:443:127.0.0.1')
retrynumberNumber of retries on transient failures (--retry)
timeoutnumberRequest 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.

ParameterTypeDescription
url *stringThe URL to request (http:// or https:// only)
acceptstringExpected response format via Accept header (e.g., 'application/json')
basicAuthstringBasic auth credentials as 'user:password' (-u)
bodystringRequest body. Ignored when `form` is provided.
compactbooleanPrefer compact output
compressedbooleanRequest compressed response and decompress automatically (--compressed)
connectTimeoutnumberMaximum time in seconds for connection phase only (--connect-timeout). Detects connection failures fast.
contentTypestringContent-Type header (default: application/json). Ignored when `form` is provided.
dataUrlencodearrayURL-encoded form data items (--data-urlencode). Each item is 'key=value'. Use instead of manual URL encoding.
followRedirectsbooleanFollow HTTP redirects (default: true)
formobjectMultipart 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…
headersobjectRequest headers as key-value pairs
httpVersionstringHTTP version to use: '1.0', '1.1', or '2' (--http1.0/--http1.1/--http2)
insecurebooleanAllow insecure TLS connections, e.g. self-signed certificates (-k)
pathstringWorking directory
preserveMethodOnRedirectbooleanPreserve POST method on 301/302/303 redirects instead of converting to GET (--post301/--post302/--post303)
proxystringProxy 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…
timeoutnumberRequest 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.

ParameterTypeDescription
url *stringThe URL to request (http:// or https:// only)
basicAuthstringBasic auth credentials as 'user:password' (-u)
compactbooleanPrefer compact output
connectTimeoutnumberMaximum time in seconds for connection phase only (--connect-timeout). Fast failure for availability probing.
followRedirectsbooleanFollow HTTP redirects (default: true)
headersobjectRequest headers as key-value pairs
httpVersionstringHTTP version to use: '1.0', '1.1', or '2' (--http1.0/--http1.1/--http2)
insecurebooleanAllow insecure TLS connections, e.g. self-signed certificates (-k)
pathstringWorking directory
proxystringProxy 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…
resolvestringCustom DNS resolution (--resolve). Format: 'host:port:addr' (e.g., 'example.com:443:127.0.0.1')
retrynumberNumber of retries on transient failures (--retry)
timeoutnumberRequest timeout in seconds (default: 30)