HTTPSocket.Get Method

Requests the content from the specified URL. The PageReceived event will execute when the data has been retrieved.

Syntax
HTTPSocket.Get URL, [File], [Timeout]

Parameters
URL | String
File | FolderItem (Optional)
Timeout | Integer (Optional)

# Notes

If a FolderItem is passed, the data will be downloaded to that file. The DownloadComplete event will execute when the response data has been retrieved.

If the optional Timeout parameter (seconds) is used, REALbasic will wait the specified number of seconds for the page. When using the Timeout parameter, the page will be retrieved in a synchronous manner. If Timeout is set to zero, then there will be no timeout period and the socket will wait until it receives the page or gets an error. In this case, Get returns a String that contains the requested content. If you pass both a FolderItem and a Timeout, then Get returns a Boolean that is True if the Get was successful. The data will be downloaded to the passed FolderItem. Set the Yield property to True to allow for background activities while waiting.