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. Anyother properties (not in bold) are considered optional. The table also indicates any default values, whether a property supports the NiFi Expression Language (or simply EL), 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.

NameDescriptionDefault ValueValid ValuesELSensitive
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.YesNo
Max Batch SizeIf 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 ignored100 MBNoNo
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 throttledNoNo
SSL Context ServiceThe Controller Service to use in order to obtain an SSL ContextNoNo
UsernameUsername required to access the URLNoNo
PasswordPassword required to access the URLNoYes
Send as FlowFileIf true, will package the FlowFile's contents and attributes together and send the FlowFile Package; otherwise, will send only the FlowFile's contentfalse
  • true
  • false
NoNo
Use Chunked EncodingSpecifies whether or not to use Chunked Encoding to send the data. If false, the entire content of the FlowFile will be buffered into memory.true
  • true
  • false
NoNo
Compression LevelDetermines 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'ed0NoNo
Connection TimeoutHow long to wait when attempting to connect to the remote server before giving up30 secNoNo
Data TimeoutHow long to wait between receiving segments of data from the remote server before giving up and discarding the partial file30 secNoNo
Attributes to Send as HTTP Headers (Regex)Specifies the Regular Expression that determines the names of FlowFile attributes that should be sent as HTTP HeadersNoNo
User AgentWhat to report as the User Agent when we connect to the remote serverNoNo

Relationships:

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