HTTPSocket.Get
From Xojo Documentation
Asynchronously downloads the content from URL. When the page content is received, the PageRecieved event is called. You need to subclass HTTPSocket (or use AddHandler) so that you can handle the appropriate events.
Asynchronously downloads the content from the URL directly to the FolderItem. The DownloadComplete event is called when the response data has finished downloading. You need to subclass HTTPSocket (or use AddHandler) so that you can handle the appropriate events.
Supported for all project types and targets.
Synchronously downloads the content from URL. The data is returned as a String. Timeout is the number of seconds to wait for the result. If Timeout is set to zero, then there is no timeout period and the socket waits until it receives the page or gets an error. HTTPSocket.ErrorCode is -1 if the Timeout value is reached.
Supported for all project types and targets.
Synchronously downloads the content from the URL directly to the FolderItem. When the download has finished, True is returned if successful, False if there was an error. Timeout is the number of seconds to wait for the result. HTTPSocket.ErrorCode is -1 if the Timeout value is reached.
Notes
For the synchronous version of these methods, set the Yield property to True to allow for background activities while waiting.