Description:
This processor performs an HTTP post with the content of
each incoming FlowFile.
Uses Attributes:
Attribute Name |
Description |
mime.type |
If not sending data as a FlowFile, the mime.type attribute will be used to set the HTTP Header for Content-Type . |
Properties:
In the list below, the names of required properties appear
in bold. Any other properties (not in bold) are considered optional.
If a property has a default value, it is indicated. If a property
supports the use of the NiFi Expression Language (or simply,
"expression language"), that is also indicated.
- URL
- The URL to post to. The first part of the URL must be
static. However, the path of the URL may be defined using
NiFi Expression Language. For example, https://${hostname}
is not valid, but https://1.1.1.1:8080/files/${nf.file.name} is
valid.
- Default value: no default
- Supports expression language: true
- Max Batch Size
- Specifies the max data size for a batch of FlowFiles to
send in a single HTTP POST. If nothing is specified, each FlowFile
will be sent separately.
- Default value: 100 MB
- Supports expression language: false
- Max Data To Post per Second
- The maximum amount of data to send per second. This allows
the bandwidth to be throttled to a specified data rate. If not
specified, the data rate is not throttled.
- Default value: no default
- Supports expression language: false
- 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
- Username
- The username required to access the URL.
- Default value: no default
- Supports expression language: false
- Password
- The password required to access the URL.
- Default value: no default
- Supports expression language: false
- Send as FlowFile
- A Boolean value (true/false), indicating whether to package
the FlowFile's contents and attributes together and send them as a
FlowFile package; otherwise, it will send only the FlowFile's
content.
- Default value: false
- Supports expression language: false
- Use Chunked Encoding
- Specifies whether to use chunked encoding to send the data. If false, the entire
content of the FlowFile will be buffered into memory. The default is true.
- Default value: true
- Supports expression language: false
- Compression Level
- Specifies the GZIP compression level to use when sending
the file. The value must be within the range of 0-9. A value of 0
indicates that the file should not be GZIP'd.
- Default value: 0
- Supports expression language: false
- Connection Timeout
- The amount of time to wait before timing out while creating
a connection.
- Default value: 30 sec
- Supports expression language: false
- Data Timeout
- The amount of time to wait before timing out while
transferring data.
- Default value: 30 sec
- Supports expression language: false
- Attributes to Send as HTTP Headers (Regex)
- Specifies the regular expression that determines the names
of FlowFile attributes that should be sent as HTTP headers.
- Default value: no default
- Supports expression language: false
- User Agent
- What to report as the user agent when a connection is made
to the remote server.
- Default value: no default
- Supports expression language: false
Relationships:
- failure
- If something prevents the processor from successfully
posting the FlowFile, then the FlowFile follows this relationship.
- success
- If the processor successfully posts the FlowFile, then it
follows this relationship.