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).
Example Configuration
{
"name": "HttpGetValve",
"enabled": "true",
"config": {
"url": "http://api.mycompany.com/users/{{item.uid}}",
"dest": "user_data",
"binary_content": "false"
}
}
In the example above {{item.uid}} will be fetched from the request.
This value will be set on the property user_data (as configured in the example above).