| Parameter name | Required | Default value | Description |
|---|---|---|---|
host | yes | - | FTP server domain name or IP |
port | no | 21 | FTP service port number |
user | no | anonymous | Login username |
pwd | no | null | Login password |
passive | no | false | Whether to use passive mode (PASV). Enabled when value is true |
url | yes | - | Path to file to download (FTP path) |
| Indicator index | Indicator name | Calculation method |
|---|---|---|
| 0 | Total time spent | Time taken to download URL (same as 5) |
| 1 | DNS Lookup Time | The time taken to resolve host to IP |
| 2 | Connection Establishment Time | Time taken to establish an FTP control connection |
| 3 | Login time | The time taken from sending the username and password to successful login |
| 4 | Total Download Bytes | Successfully downloaded file size (bytes) |
| 5 | Download time | The time taken from sending GET to receiving completion |
| 6 | Download Speed | downloaded bytes / download time (bytes/ms) |
host / port: Determine the connection target. Set the Error code 612029 when the connection fails, and INDEX_CONNECT records the actual attempt time.user / pwd: Login credentials. Set Error code 612015 when authentication fails, and INDEX_LOGIN records the time taken for the attempt.passive:false (default): Use active mode, the server actively connects to the client data port, which may be affected by the client firewall.true: Using passive mode, the client connects to the data port opened by the server, with better penetration.url: Specify the download file path. If the file does not exist or the permissions are insufficient, Exception will be triggered and the Error code 699000 will be set; if it is not set URL, the total time consumption (performance) will be 0.| Error code | meaning |
|---|---|
| 612007 | DNS resolution failed |
| 612029 | FTP connection failed |
| 612015 | Login failed (username or password Error) |
| 699000 | File download Exception |