The following table lists the supported FTP commands of the control:
Operation | Description | Example |
CD file1 | Change Directory. Changes to the directory specified in file1. |
|
CDUP | Change to Parent. Same as "CD .." |
|
DELETE file1 | Deletes the file specified in file1. |
|
DIR [ file1 ] | Searches the directory specified infile1. If file1 isn't supplied, the current working directory is searched. Use the GetChunk method to return the data. |
|
GET file1 file2 | Retrieves the remote file specified infile1, and creates a new local file specified in file2. |
|
MKDIR file1 | Creates a directory as specified infile1. Success is dependent on user privileges on the remote host. |
|
PUT file1 file2 | Copies a local file specified in file1 to the remote host specified in file2. |
|
PWD | Print Working Directory. Returns the current directory name. Use the GetChunk method to return the data. |
|
QUIT | Terminate current connection |
|
RECV file1 file2 | Same as GET. |
|
RENAME file1 file2 | Renames a file. Success is dependent on user privileges on the remote host. |
|
RMDIR file1 | Remove directory. Success is dependent on user privileges on the remote host. |
|
SEND file1 | Copies a file to the FTP site. (same as PUT.) |
|
SIZE file1 | Returns the size of the file specified infile1. |
|
Important If your proxy server is a CERN proxy server, direct FTP connections (using the Execute method) are disallowed. In that case, to get a file, use the OpenURL method with the Open, Put, and Close statements, as shown earlier in "Saving to a File Using the OpenURL Method." You can also use the OpenURL method to get a directory listing by invoking the method and specifying the target directory as the URL.
Using the Execute Method with the HTTP Protocol
The HTTP protocol allows client machines to request data from the server using the GET, HEAD, POST, and PUT commands. These operations are shown in the following table:
Operation | Description | Example |
GET | Retrieves the file named in url. |
|
HEAD | Retrieves only the headers of the file named in the URL property. |
|
POST | Provides additional data to support a request to the remote host. |
|
PUT | Replaces data at the specified URL. |
|
0 komentar:
Post a Comment