HTTP Request

Definition

Allows sending server requests via the HTTP protocol, suitable for scenarios such as retrieving external data, webhooks, generating images, and downloading files. It enables you to send customized HTTP requests to specified web addresses, achieving interconnectivity with various external services.

This node supports common HTTP request methods:

  • GET: Used to request the server to send a specific resource.

  • POST: Used to submit data to the server, typically for submitting forms or uploading files.

  • HEAD: Similar to GET requests, but the server only returns the response headers without the resource body.

  • PATCH: Used to apply partial modifications to a resource.

  • PUT: Used to upload resources to the server, typically for updating an existing resource or creating a new one.

  • DELETE: Used to request the server to delete a specified resource.

You can configure various aspects of the HTTP request, including URL, request headers, query parameters, request body content, and authentication information.


Scenarios

  • Send Application Interaction Content to a Specific Server

One practical feature of this node is the ability to dynamically insert variables into different parts of the request based on the scenario. For example, when handling customer feedback requests, you can embed variables such as username or customer ID, feedback content, etc., into the request to customize automated reply messages or fetch specific customer information and send related resources to a designated server.

The return values of an HTTP request include the response body, status code, response headers, and files. Notably, if the response contains a file, this node can automatically save the file for use in subsequent steps of the workflow. This design not only improves processing efficiency but also makes handling responses with files straightforward and direct.

  • Send File

You can use an HTTP PUT request to send files from the application to other API services. In the request body, you can select the file variable within the binary. This method is commonly used in scenarios such as file transfer, document storage, or media processing.

Example: Suppose you are developing a document management application and need to send a user-uploaded PDF file to a third-party service. You can use an HTTP request node to pass the file variable.

Here is a configuration example:

#2:

Change request updated