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
  1. Call InternetOpen to get an Internet handle.
  2. Call InternetConnect to create a session handle for the site.
  3. Call HttpOpenRequest to open the site and prepare it for the HTTP request.
  4. Call HttpSendRequest to send the request.
  5. Call InternetReadFile or InternetQueryDataAvailable to download information.
  6. Call InternetCloseHandle to close open handles.