Demo HTTP Request
AI-generatedSummary
Perform an HTTP request to a specified URL using the chosen method, optionally including JSON-formatted headers and body, and return the response data along with status information.
Inputs
- URL (required) — The URL address to send the HTTP request to, specified as a string.
- 请求方法 (required) — The HTTP method to use for the request; options are GET, POST, PUT, or DELETE.
- 请求头 — HTTP request headers provided as a JSON-formatted string.
- 请求体 — HTTP request body content as a JSON-formatted string; only used when method is POST or PUT.
Output shape
a list of JSON objects, each containing 'success' (boolean), 'statusCode' (number, default 200), and 'data' (the HTTP response body parsed as JSON). On failure, output includes 'success' as false and an 'error' message string.
Request headers and body must be valid JSON strings or the node will error. The response is always returned as JSON with an assumed status code 200 on success. If 'continue on fail' is enabled, errors per item will output a JSON object containing error details instead of failing the workflow.