HttpBin

Interact with HttpBin API

Actions2

Overview

This node interacts with the HttpBin API, specifically performing HTTP DELETE requests. It allows users to send data either as query parameters or as a JSON body in the DELETE request. This is useful for testing and debugging HTTP DELETE operations by simulating requests to an endpoint that echoes back the sent data.

Common scenarios include:

  • Testing how an API handles DELETE requests with various query parameters.
  • Sending JSON payloads in DELETE requests to APIs that support bodies in such requests.
  • Debugging and inspecting HTTP DELETE request formats and responses.

Example: Deleting a resource identified by query parameters or sending a JSON object specifying deletion criteria.

Properties

Name Meaning
Type of Data Choose whether to send data as Query Parameters (queryParameter) or as JSON Body (jsonData).
Query Parameters When "Type of Data" is set to Query Parameters, specify key-value pairs to be sent as URL query parameters in the DELETE request.
JSON Object When "Type of Data" is set to JSON, specify key-value pairs to be sent as JSON properties in the body of the DELETE request.

Output

The node outputs the response from the HttpBin API in the json field. This typically includes an echo of the request details such as headers, args (query parameters), and data (body content). The output structure helps verify what was sent and received.

If binary data were involved, it would be summarized here, but this node deals primarily with JSON data.

Dependencies

  • Requires access to the public HttpBin API at https://httpbin.org.
  • Optionally uses an API authentication token if configured, but it is not mandatory.
  • No other external dependencies are required.

Troubleshooting

  • Issue: Incorrect or missing query parameters or JSON keys may cause unexpected responses.
    • Resolution: Ensure all required keys and values are correctly specified according to the API expectations.
  • Issue: Network errors or inability to reach https://httpbin.org.
    • Resolution: Check internet connectivity and firewall settings.
  • Error: Invalid JSON body format.
    • Resolution: Verify that JSON key-value pairs are properly formatted and valid.
  • Error: Selecting a data type but not providing corresponding data.
    • Resolution: Provide at least one key-value pair for the selected data type.

Links and References

Discussion