This article gives a list of samples that shows you how to use the WinInet APIs to do HTTP. The samples are in C, C++, and Microsoft Visual Basic. This is not a complete list of all of the samples and all of the articles that show coding samples for HTTP with the WinInet APIs. However, the samples and the articles that are in the "References" section give you a good understanding of how to do a variety of tasks by using the WinInet APIs to add HTTP functionality to your applications.
HeadDump sample: demonstrates how to create and how to submit an HTTP request
Location: \Microsoft Platform SDK\Samples\Web\networking\httpdump
HTTPAuth sample: demonstrates how to handle HTTP authentication
Location: \Microsoft Platform SDK\Samples\Web\networking\httpauth
Information about how to write an MFC console application that uses WININET.dll to communicate with the Internet can be downloaded from the MSDN:
Artikelnummer: 288879 – Letzte Überarbeitung: 23.06.2005 – Revision: 1