| Overview | How Do I
Some actions taken by an Internet client (reading a file, for example) have prerequisite actions (in this case, establishing an Internet connection). The following tables list the prerequisites for some client actions.
General Internet URL (FTP, Gopher, or HTTP)
Action |
Prerequisite |
Establish a connection. |
Create a to establish the basis of an Internet client application. |
Open a URL. |
Establish a connection.
Call .
The OpenURL function returns a read-only resource object. |
Read URL data. |
Open the URL.
Call . |
Query the setting of an Internet option. |
Establish a connection.
Call . |
Set an Internet option. |
Establish a connection.
Call . |
Set a function to be called with status information. |
Establish a connection.
Call .
Override to handle calls. |
FTP
Action |
Prerequisite |
Establish an FTP connection. |
Create a as the basis of this Internet client application.
Call to create a object. |
Find the first resource. |
Establish an FTP connection.
Create a object.
Call . |
Enumerate all available resources. |
Find the first file.
Call until it returns FALSE. |
Open an FTP file. |
Establish an FTP connection.
Call to create and open a object. |
Read an FTP file. |
Open an FTP file with read access.
Call . |
Write to an FTP file. |
Open an FTP file with write access.
Call . |
Change the client's directory on the server. |
Establish an FTP connection.
Call . |
Retrieve the client's current directory on the server. |
Establish an FTP connection.
Call . |
HTTP
Action |
Prerequisite |
Establish an HTTP connection. |
Create a as the basis of this Internet client application.
Call to create a object. |
Open an HTTP file. |
Establish an HTTP connection.
Call to create a object.
Call .
Call . |
Read an HTTP file. |
Open an HTTP file.
Call . |
Get information about an HTTP request. |
Establish an HTTP connection.
Call to create a object.
Call . |
Gopher
Action |
Prerequisite |
Establish a gopher connection. |
Create a as the basis of this Internet client application.
Call to create a . |
Find the first file in the current directory. |
Establish a gopher connection.
Create a object.
Call to create a object.
Pass the locator to .
Call to get the locator of a file if you need it later. |
Enumerate all available files. |
Find the first file.
Call until it returns FALSE. |
Open a gopher file. |
Establish a gopher connection.
Create a gopher locator with or find a locator with .
Call . |
Read a gopher file. |
Open a gopher file.
Use . |