The InternetFileDownload transaction uses FTP protocol to download an Internet file to a folder called Spicer under the system temporary folder.
Type XTYP_REQUEST
Syntax [InternetFileDownload("server", "userID", "password", port, "filename")]
|
Parameter |
Data type |
Values |
Meaning |
|
server |
name of the Internet server (or URL) | ||
|
userID |
string |
"" |
no user ID required |
|
|
|
text |
valid user ID. See Remarks. |
|
password |
string |
"" |
no password required |
|
|
|
text |
valid password. See Remarks. |
|
port |
WORD |
0 |
use default port number |
|
|
|
other integer |
use specified port number |
|
filename |
string |
full name and path of the file to download | |
|
Reply |
Data type |
Values and Meaning | |
|
"filename" |
string |
name of the local file on disk | |
Remarks
Typically, a specific userID and password are not required to download files.
No check is done on file format, so you can download files that are not supported in Imagenation.
You will get an error message if you download a file with the same name as a previously downloaded file. Several other error messages are specific to this and related transactions. For a list of all error codes, click DDE error codes.
Release information
Added in Release 5.10.
Modified in Release 5.13: Uses FTP instead of HTTP protocol.
See also