ComfyUI > Nodes > ComfyUI-RequestNodes > Post Request Node

ComfyUI Node: Post Request Node

Class Name

Post Request Node

Category
RequestNode/Post Request
Author
felixszeto (Account age: 1334days)
Extension
ComfyUI-RequestNodes
Latest Updated
2025-03-28
Github Stars
0.07K

How to Install ComfyUI-RequestNodes

Install this extension via the ComfyUI Manager by searching for ComfyUI-RequestNodes
  • 1. Click the Manager button in the main menu
  • 2. Select Custom Nodes Manager button
  • 3. Enter ComfyUI-RequestNodes in the search bar
After installation, click the Restart button to restart ComfyUI. Then, manually refresh your browser to clear the cache and access the updated list of nodes.

Visit ComfyUI Online for ready-to-use ComfyUI environment

  • Free trial available
  • 16GB VRAM to 80GB VRAM GPU machines
  • 400+ preloaded models/nodes
  • Freedom to upload custom models/nodes
  • 200+ ready-to-run workflows
  • 100% private workspace with up to 200GB storage
  • Dedicated Support

Run ComfyUI Online

Post Request Node Description

Facilitates HTTP POST requests for data submission to server endpoints, enhancing workflow automation and connectivity.

Post Request Node:

The Post Request Node is designed to facilitate HTTP POST requests, allowing you to send data to a specified server endpoint. This node is particularly useful for interacting with web services and APIs, enabling you to automate data submission tasks within your workflow. By leveraging this node, you can seamlessly integrate external services into your projects, enhancing functionality and connectivity. The node is capable of handling various data formats and provides multiple output options, making it versatile for different use cases. Its primary goal is to simplify the process of sending data over the internet, ensuring that even users with minimal technical expertise can effectively utilize web-based resources.

Post Request Node Input Parameters:

target_url

The target_url parameter specifies the endpoint to which the POST request will be sent. It is crucial as it determines the destination of your data. Ensure that the URL is correct and accessible to avoid connectivity issues. There are no specific minimum or maximum values, but it should be a valid URL format.

request_body

The request_body parameter contains the data you wish to send in the POST request. This data is typically formatted as JSON, and it is essential for the node's operation as it represents the payload of your request. The content of this parameter can vary depending on the requirements of the target endpoint. Ensure that the JSON is correctly formatted to avoid errors.

str0, str1, str2, ..., str9

These parameters (str0 to str9) are placeholders that can be used to dynamically replace parts of the request_body. They allow you to customize the data being sent without manually altering the JSON structure. Each string input can be used to substitute specific placeholders within the request body, providing flexibility in data handling. There are no specific constraints on these parameters, but they should be used thoughtfully to ensure the request body remains valid.

Post Request Node Output Parameters:

text_output

The text_output parameter provides the response from the server as plain text. This output is useful for quickly checking the server's response or for logging purposes. It helps you understand the result of your POST request in a human-readable format.

file_output

The file_output parameter contains the server's response as a binary file. This is particularly useful if the response includes downloadable content, such as images or documents. It allows you to handle binary data efficiently within your workflow.

json_output

The json_output parameter attempts to parse the server's response as JSON. This output is crucial for interacting with APIs that return structured data, enabling you to easily extract and manipulate information. If the response is not valid JSON, an error message will be provided instead.

any_output

The any_output parameter captures the raw content of the server's response. This output is versatile, allowing you to handle any type of response, whether it's text, binary, or otherwise. It serves as a catch-all for scenarios where the response format is unpredictable.

Post Request Node Usage Tips:

  • Ensure that the target_url is correct and accessible to avoid connectivity issues.
  • Use the str0 to str9 parameters to dynamically modify the request_body without altering the JSON structure manually.
  • Validate the request_body JSON format to prevent errors during the request.
  • Utilize the json_output to easily parse and handle structured data from API responses.

Post Request Node Common Errors and Solutions:

Invalid JSON in request_body

  • Explanation: This error occurs when the request_body is not properly formatted as JSON.
  • Solution: Double-check the JSON structure in the request_body for syntax errors and ensure it is valid.

Response is not valid JSON

  • Explanation: The server's response could not be parsed as JSON, possibly due to an unexpected response format.
  • Solution: Verify the expected response format from the server and handle non-JSON responses using text_output or any_output.

Connection Error

  • Explanation: This error indicates that the node could not establish a connection to the target_url.
  • Solution: Check the network connection and ensure the target_url is correct and reachable.

Post Request Node Related Nodes

Go back to the extension to check out more related nodes.
ComfyUI-RequestNodes
RunComfy
Copyright 2025 RunComfy. All Rights Reserved.

RunComfy is the premier ComfyUI platform, offering ComfyUI online environment and services, along with ComfyUI workflows featuring stunning visuals. RunComfy also provides AI Playground, enabling artists to harness the latest AI tools to create incredible art.