Performs an HTTP Post with the content of the FlowFile
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.
Name | Description | Default Value | Valid Values | EL | Sensitive |
---|---|---|---|---|---|
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 the Attribute Expression Language. For example, https://${hostname} is not valid, but https://1.1.1.1:8080/files/${nf.file.name} is valid. | Yes | No | ||
Max Batch Size | If 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 | 100 MB | No | No | |
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 | No | No | ||
SSL Context Service | The Controller Service to use in order to obtain an SSL Context | No | No | ||
Username | Username required to access the URL | No | No | ||
Password | Password required to access the URL | No | Yes | ||
Send as FlowFile | If true, will package the FlowFile's contents and attributes together and send the FlowFile Package; otherwise, will send only the FlowFile's content | false |
| No | No |
Use Chunked Encoding | 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. | true |
| No | No |
Compression Level | Determines 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 | 0 | No | No | |
Connection Timeout | How long to wait when attempting to connect to the remote server before giving up | 30 sec | No | No | |
Data Timeout | How long to wait between receiving segments of data from the remote server before giving up and discarding the partial file | 30 sec | No | No | |
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 | No | No | ||
User Agent | What to report as the User Agent when we connect to the remote server | No | No |
Relationships:
Name | Description |
---|---|
failure | Files that fail to send will transferred to failure |
success | Files that are successfully send will be transferred to success |