InvokeHTTP 2.0.0

Bundle
org.apache.nifi | nifi-standard-nar
Description
An HTTP client processor which can interact with a configurable HTTP Endpoint. The destination URL and HTTP Method are configurable. When the HTTP Method is PUT, POST or PATCH, the FlowFile contents are included as the body of the request and FlowFile attributes are converted to HTTP headers, optionally, based on configuration properties.
Tags
client, http, https, rest
Input Requirement
ALLOWED
Supports Sensitive Dynamic Properties
true
Properties
Dynamic Properties
Relationships
Name Description
No Retry Request FlowFiles transferred when receiving HTTP responses with a status code between 400 an 499.
Original Request FlowFiles transferred when receiving HTTP responses with a status code between 200 and 299.
Failure Request FlowFiles transferred when receiving socket communication errors.
Retry Request FlowFiles transferred when receiving HTTP responses with a status code between 500 and 599.
Response Response FlowFiles transferred when receiving HTTP responses with a status code between 200 and 299.
Writes Attributes
Name Description
invokehttp.status.code The status code that is returned
invokehttp.status.message The status message that is returned
invokehttp.response.body In the instance where the status code received is not a success (2xx) then the response body will be put to the 'invokehttp.response.body' attribute of the request FlowFile.
invokehttp.request.url The original request URL
invokehttp.request.duration Duration (in milliseconds) of the HTTP call to the external endpoint
invokehttp.response.url The URL that was ultimately requested after any redirects were followed
invokehttp.tx.id The transaction ID that is returned after reading the response
invokehttp.remote.dn The DN of the remote server
invokehttp.java.exception.class The Java exception class raised when the processor fails
invokehttp.java.exception.message The Java exception message raised when the processor fails
user-defined If the 'Put Response Body In Attribute' property is set then whatever it is set to will become the attribute key and the value would be the body of the HTTP response.