Description:
Making requests to remote HTTP servers. Supporting common HTTP methods.
Storing results as new flowfiles upon success. Routing to failure on error.
An HTTP client processor that converts FlowFile attributes to HTTP headers with configurable HTTP method, URL, etc.
Adds Attributes:
Attribute Name |
Description |
invokehttp.status.code |
The status code that is returned. |
invokehttp.status.message |
The status message that is returned. |
invokehttp.response.body |
The response body. |
invokehttp.request.url |
The request URL. |
invokehttp.tx.id |
The transaction ID that is returned after reading the response. |
invokehttp.remote.dn |
The DN of the remote server. |
Properties:
-
HTTP Method
- The HTTP request method (e.g., GET, POST, PUT, DELETE, HEAD, OPTIONS)
- Default value: GET
- Supports expression language: false
-
Remote URL
- The remote URL that will be conneted to, including scheme, host, port, and path.
- Default value: no default
- Supports expression language: true
-
SSL Context Service
- The Controller Service to use for obtaining an SSL Context. The SSL Context controller service is a mechanism for providing all the security properties
that allow for secure communications between NiFi extensions and other systems. See the User Guide or the Controller Services documentation (via the "help" link in the
upper-right corner of the GUI for more information about the StandardSSLContextService. The value for this property is the identifier name that is configured in
the StandardSSLContextService.
- Default value: no default
- Supports expression language: false
-
Connection Timeout
- The amount of time to wait before timing out while creating a connection.
- Default value: 5 secs
- Supports expression language: false
-
Read Timeout
- The amount of time to wait before timing out while waiting for a response from the remote service.
- Default value: 15 secs
- Supports expression language: false
-
Include Data Header
- A Boolean value (true/false), indicating whether to include an RFC-2616 date header in the request.
- Default value: True
- Supports expression language: false
-
Follow Redirects
- A Boolean value (true/false), indicating whether to follow HTTP redirects issued by the remote server.
- Default value: True
- Supports expression language: false
-
Attributes to Send
- A regular expression that defines which attributes to send as HTTP headers in the request. If not defined, no attributes are sent as headers.
- Default value: no default
- Supports expression language: false
Relationships:
-
Original
- Original FlowFile will be routed upon success (2xx status codes).
-
Response
- Response FlowFile will be routed upon success (2xx status codes).
-
Retry
- FlowFile will be routed on any status code that can be retried (5xx status codes).
-
No Retry
- FlowFile will be routed on any status code that should NOT be retried (1xx, 3xx, 4xx status codes).
-
Failure
- FlowFile will be routed on any type of connection failure, timeout or general exception.