Notice: This website is an unofficial Microsoft Knowledge Base (hereinafter KB) archive and is intended to provide a reliable access to deleted content from Microsoft KB. All KB articles are owned by Microsoft Corporation. Read full disclaimer for more details.

INFO: List of WinInet API HTTP Samples


View products that this article applies to.

Summary

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.

↑ Back to the top


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.

↑ Back to the top


References

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:

↑ Back to the top


Properties

Retired KB Content Disclaimer
This article was written about products for which Microsoft no longer offers support. Therefore, this article is offered "as is" and will no longer be updated.

↑ Back to the top


Keywords: KB288879, kbinfo, kbhttp

↑ Back to the top

Article Info
Article ID : 288879
Revision : 4
Created on : 6/24/2005
Published on : 6/24/2005
Exists online : False
Views : 476