OutboundFile
The OutboundFile handler can send a file to a remote server using the HTTP protocol.
When the SEND command of this content handler is executed the following steps occur:
The handler uses the value of the CONTENT keyword to determine the content type, if no CONTENT keyword is present, then the file extension is used to determine the content type using the MIME file type map.
If an ENCODING keyword is present, then a charset attribute is determined and appended to the content type.
If the value of the METHOD keyword is GET, then no FILE keyword is required as the HTTP GET protocol is used to receive content from the remote HTTP server.
Syntax:
Command |
Keyword |
Value |
Developer notes for Command/Keyword/Value |
SEND |
HANDLER |
|
OutboundFile |
FILE |
value |
Conditional. File path. |
|
URI |
value |
Mandatory. Remote URI. |
|
HOST |
value |
Mandatory. Remote server. |
|
USER |
value |
Optional. Basic authentication user. |
|
PASSWORD |
value |
Optional. Basic authentication password. |
|
PROXY |
value |
Optional. Proxy server. |
|
PROXYUSER |
value |
Optional. Basic authentication user. |
|
PROXYPASSWORD |
value |
Optional. Basic authentication password. |
|
METHOD |
|
Optional. See METHOD. |
|
VERSION |
|
Optional. See VERSION. |
|
SECURE |
*YES |
Optional. Use HTTPS protocol. |
|
*NO |
Default. Use HTTP protocol. |
||
WAIT |
*YES |
Optional. Default is 0. |
|
*NO |
Do not wait for HTTP response. |
||
value |
Wait read time in milliseconds. |
||
TIMEOUT |
value |
Optional. Default is 0 which means disabled. |
|
LOCALE |
|
Optional. See LOCALE. |
|
CONTENT |
|
Optional. See CONTENT. |
|
ENCODING |
|
Optional. See ENCODING. |
Example
SEND HANDLER(OutboundFile) FILE(/upload/order.csv) URI(/cgi-bin/program) HOST(…)