HttpGetValve

Item iterator valve to GET a resource using HTTP and adding the response to the current item.

HTTP status code and message will be set in the following item properties:

  • http_response_code
  • http_response_message

HTTP headers are also added to the item using header name as property name.

Response is only added to item if response code is 200 (HTTP OK).

Properties

Name Description Default value Mandatory Supports property expansion
url The URL to GET Yes Yes
dest The item destination property "http_response_body" No No
binary_content Flag indicating if resource is or should be treated as binary "false" No No

Example Configuration

{      
  "name": "HttpGetValve",
  "enabled": "true",
  "config": {
    "url": "http://api.mycompany.com/users/{{item.uid}}",
    "dest": "user_data",
    "binary_content": "false"
  }
}

Requirements