Download A File From The Web (HTTP)

A simple Delphi function that will download the contents of a file into a TStream over HTTP, useful for downloading web pages and files from the internet.

Using HTTPDownload:

Parameters:

URL: A string value containing the location of the file that is to be downloaded.

AStream: Any descendant of TStream, that will capture the data downloaded.

Return Value:

This function will return the Boolean value if successful.

If the function fails, it will return the Boolean value False.

Example:

 

Strip HTML Tags Function

A Delphi function to remove all HTML / XML type tags from a string of text.

Using StripTags:

Parameters:

S: A string value containing the HTML / XML type tags that are to be removed.

Return Value:

This function will return a string value conatining the value of S with any tags removed.

Example: