session_url » Revisions »
Differences
This shows you the differences between the selected revisions of the page.
2011-05-23 | 2011-05-23 | ||
spec chars have to be encoded (martin) | elaborate on syntax parts (martin) | ||
Line 3: | Line 3: | ||
The syntax is: | The syntax is: | ||
- | [ sftp|ftp|scp :// ][ <user> [ : <password> ] @ ] <host> [ : <port> ] | + | [ sftp|ftp|ftps|scp :// ][ <username> [ : <password> ] @ ] <host> [ : <port> ] |
+ | |||
+ | The only mandatory part is ''host''. Most URL's will include also ''username'' and protocol (''sftp'', ''ftp'' or ''scp''). Note that ''sftp'' protocol is the default one, but the default can be changed. The ''ftps'' protocol is FTP over SSL/TLS. The ''port'' needs to be specified only, when it differs from the default port for the protocol (22 for ''sftp''/''scp'', 21 for ''ftp'' and 990 for ''ftps''). | ||
The ''host'' can either be a host name (such as ''example.com'') or an IP address (such as ''127.0.0.1''). | The ''host'' can either be a host name (such as ''example.com'') or an IP address (such as ''127.0.0.1''). |