Using WinINET to Access HTTP
This procedure outlines how to use WinINET to access an internet site using the HTTP protocols.
To use the HTTP protocol
- Call InternetOpen to get an Internet handle.
- Call InternetConnect to create a session handle for the site.
- Call HttpOpenRequest to open the site and prepare it for the HTTP request.
- Call HttpSendRequest to send the request.
- Call InternetReadFile or InternetQueryDataAvailable to download information.
- Call InternetCloseHandle to close open handles.