send_http_request
Thestd::send_http_request action makes an HTTP request to the specified URL.
Inputs
| Name | Required | Type | Description |
|---|---|---|---|
url | required | string | The URL to send the request to |
method | optional | string | The HTTP method (GET, HEAD, POST). Default: GET |
headers | optional | map | HTTP headers to include in the request |
body | optional | string | The request body (for POST requests) |
timeout_ms | optional | integer | Request timeout in milliseconds |
Outputs
| Name | Type | Description |
|---|---|---|
status_code | integer | The HTTP status code |
response_body | string | The response body |