Send an HTTP request
send_requestSend a one-off HTTP request without saving it to the Kurlo workspace, resolving {{variables}} from the environment with per-call overrides.
Instructions
Send a one-off HTTP request that is not saved in the workspace. {{variables}} in the URL, headers and body are resolved from the environment.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | Absolute URL; may use {{variables}}. | |
| body | No | Request body. JSON is sent as application/json, anything else as text/plain, unless a Content-Type header says otherwise. | |
| method | No | HTTP method (default GET). | |
| headers | No | Request headers, as name to value. | |
| variables | No | Variable overrides for this call, as name to value. They win over the environment. | |
| environment | No | Environment name. Defaults to the one the server was started with. | |
| maxBodyBytes | No | Most bytes of the response body to return (default 65536, max 1048576). | |
| browserOrigin | No | Send the call the way a browser on this page origin would, for example https://app.example.com: browser headers, the CORS preflight when one is needed, and the CORS error a browser would raise. Omit it and a saved request uses its own browser settings, if any. | |
| browserCredentials | No | With browserOrigin, make it a credentialed request (fetch credentials: include), which a wildcard Access-Control-Allow-Origin does not satisfy. |