INFO: List of WinInet API HTTP Samples

Veralteter Haftungsausschluss für KB-Inhalte

Dieser Artikel wurde für Produkte geschrieben, für die Microsoft keinen Support mehr anbietet. Deshalb wird dieser Artikel im vorliegenden Zustand bereitgestellt und nicht mehr aktualisiert.


The Microsoft Win32 Internet (WinInet) application programming interface (API) provides stand-alone client applications with easy access to standard Internet protocols, such as Gopher, File Transfer Protocol (FTP), and Hypertext Transfer Protocol (HTTP), by abstracting the protocols into a high-level interface that is familiar to Win32 developers.

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.

More Information

If you want to expand your knowledge of the APIs of WinInet beyond the samples specified here, view the following topics on the MSDN.

Microsoft provides programming examples for illustration only, without warranty either expressed or implied. This includes, but is not limited to, the implied warranties of merchantability or fitness for a particular purpose. This article assumes that you are familiar with the programming language that is being demonstrated and with the tools that are used to create and to debug procedures. Microsoft support engineers can help explain the functionality of a particular procedure, but they will not modify these examples to provide added functionality or construct procedures to meet your specific requirements.


For additional information, click the article numbers below to view the articles in the Microsoft Knowledge Base:

259100 SAMPLE: Vbhttp.exe Demonstrates How to Use HTTP WinInet APIs in Visual Basic
177188 SAMPLE: Using HttpSendRequestEx for Large POST Requests
242019 SAMPLE: SendRequestExAsync Uses HttpSendRequestEx Asynchronously
275046 SAMPLE: How to Use AsyncHTTP to Call WinInet APIs Asynchronously
The following samples are included with the platform software development kit (SDK):

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