Retrieve data from a web server and store it in a string buffer.
This method returns a Boolean value. If the method succeeds, the return value is true. If the method fails, the return value is false. To get extended error information, check the value of the LastError property.
The GetData method transfers data from the server to the local system, storing it in a string buffer. This method will cause the current thread to block until the file transfer completes, a timeout occurs or the transfer is canceled. During the transfer, the OnProgress event will fire periodically, enabling the application to update any user interface objects such as a progress bar.
This version of the method should only be used when the data returned by the server contains readable text. By default, the text will be automatically converted to Unicode characters using UTF-8 encoding. The CodePage property can used to change how the text is converted.
HttpClient Class | SocketTools Namespace | HttpClient.GetData Overload List