PageSource

This post was imported from an old blog archive, and predates the creation of AdamCaudill.com

Here is a quick little function to retrieve the source code of a web page, it’s pure API, so no Internet Transfer control required.

API:

Constants:

Function:

Simply pass the URL you want plus any extra headers that should be sent (one header per-line, each terminated by a vbCrLf) and it returns the full source of the page (without headers).