Configuring File Inbound Protocol for FTP, SFTP and FILE Connections
The following section describes how to configure the file inbound protocol for FTP, SFTP and FILE connections.
To configure the file inbound protocol for FTP connections, you should specify the URL asÂ
ftp://{username}:{password}@{hostname/ip_address}/{source_filepath}
ftp://admin:pass@localhost/orders
To configure the file inbound protocol for SFTP connections, you should specify the URL asÂ
sftp://{username}:{password}@{hostname/ip_address}/{source_filepath}
sftp://admin:pass@localhost/orders
If the password contains special characters, these characters will need to be replaced with their hexadecimal representation.
To configure the file inbound protocol for FILE connections, you should specify the URL asÂ
file://{local_file_system_path}
file:///home/user/test/in
Configuring a Proxy Server over FTP and SFTP Connections
Proxy server specific parameters can be set as URL query parameters. For example, to use Proxy over FTP, you could specify the URL as follows:
ftp://username:password@127.0.0.1/home/wso2/res?proxyServer=127.0.0.1&proxyPort=3128&proxyUsername=proxyuser&proxyPassword=proxyPass&timeout=2500&retryCount=3
Following are the URL parameters you can set:
Parameter | Description | Possible Values | Default Value |
---|---|---|---|
| The IP address of the proxy server. | 127.0.0.1 | false |
| The port number on which the proxy server is listening for requests. | 1328 | false |
proxyType | The proxy server type. This can either be Note In a configuration, if the proxy server type is not specified or an unknown proxy server type is specified, the |
|
|
| The user name of the proxy server. | false | |
| The password of the proxy server. | false | |
| The connection timeout in milliseconds. | 1000 | 5000 |
| The number of retry attempts in case of a connection timeout. | 3 | 5 |