Description:

Performs an HTTP Post with the content of the FlowFile

Additional Details...

Tags:

http, https, remote, copy, archive

Properties:

In the list below, the names of required properties appear in bold. Any other properties (not in bold) are considered optional. The table also indicates any default values, whether a property supports the NiFi Expression Language, and whether a property is considered "sensitive", meaning that its value will be encrypted. Before entering a value in a sensitive property, ensure that the nifi.properties file has an entry for the property nifi.sensitive.props.key.

NameDefault ValueValid ValuesDescription
URLThe URL to POST to. The first part of the URL must be static. However, the path of the URL may be defined using the Attribute Expression Language. For example, https://${hostname} is not valid, but https://1.1.1.1:8080/files/${nf.file.name} is valid.
Supports Expression Language: true
Max Batch Size100 MBIf the Send as FlowFile property is true, specifies the max data size for a batch of FlowFiles to send in a single HTTP POST. If not specified, each FlowFile will be sent separately. If the Send as FlowFile property is false, this property is ignored
Max Data to Post per SecondThe 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
SSL Context ServiceController Service:
SSLContextService
The Controller Service to use in order to obtain an SSL Context
UsernameUsername required to access the URL
PasswordPassword required to access the URL
Sensitive Property: true
Send as FlowFilefalse
  • true
  • false
If true, will package the FlowFile's contents and attributes together and send the FlowFile Package; otherwise, will send only the FlowFile's content
Use Chunked Encodingtrue
  • true
  • false
Specifies whether or not to use Chunked Encoding to send the data. If false, the entire content of the FlowFile will be buffered into memory.
Compression Level0Determines the GZIP Compression Level to use when sending the file; the value must be in the range of 0-9. A value of 0 indicates that the file will not be GZIP'ed
Connection Timeout30 secHow long to wait when attempting to connect to the remote server before giving up
Data Timeout30 secHow long to wait between receiving segments of data from the remote server before giving up and discarding the partial file
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
User AgentWhat to report as the User Agent when we connect to the remote server

Relationships:

NameDescription
failureFiles that fail to send will transferred to failure
successFiles that are successfully send will be transferred to success