Steps in a Typical HTTP Client Application
| Overview | How Do I
The following table shows the steps you might perform in a typical HTTP client application:
Your goal |
Actions you take |
Effects |
Begin an HTTP session. |
Create a object. |
Initializes WinInet and connects to server. |
Connect to an HTTP server. |
Use . |
Returns a object. |
Open an HTTP request. |
Use . |
Returns a object. |
Send an HTTP request. |
Use and . |
Finds the file. Returns FALSE if the file is not found. |
Read from the file. |
Use . |
Reads the specified number of bytes using a buffer you supply. |
Handle exceptions. |
Use the class. |
Handles all common Internet exception types. |
End the HTTP session. |
Dispose of the object. |
Automatically cleans up open file handles and connections. |
See Also Prerequisites for Internet Client Classes