Return the Contents of a Web Page Using WinInet API

Category:
Network/Internet
Type:
Snippets
Difficulty:
Intermediate
Author:
Intelligent Solutions Inc.

Version Compatibility:

More information:
This function is intended as an alternative to using the OpenURL method Microsoft's Internet Transfer control for obtaining the contents of a web page. That control has a bug whereby you will not always get the full contents of the page. See the article http://support.microsoft.com/support/kb/articles/Q232/1/94.ASP for more details. In fact, this function is just a more generic version of the workaround presented in that article.

Instructions: Copy the declarations and code below and paste directly into your VB project.

Declarations:

Code: