-
-
Notifications
You must be signed in to change notification settings - Fork 11
libcURL.cURLClient.Get
#libcURL.cURLClient.Get
##Method Signatures
Function Get(URL As String, WriteTo As Writeable = Nil) As Boolean
Sub Get(URL As String, WriteTo As Writeable = Nil)##Parameters
| Name | Type | Comment |
|---|---|---|
| URL | String |
The RFC 3986 URI to get. |
| WriteTo | Writeable |
Optional. Downloaded data (if any) will be written to this object. If this parameter is Nil then use GetDownloadedData. |
##Return value
The synchronous version of this method returns True on success..
##Remarks
Performs a download using protocol-appropriate semantics (http GET, ftp RETR, etc.)
The protocol is inferred by libcURL; explicitly specify the protocol in the URL to avoid bad guesses.
You may optionally pass a Writeable object to receive downloaded data. If no object is passed then downloaded data can be retrieved with GetDownloadedData.
If the URL parameter is empty ("") then the URL option is not modified (i.e. the previous URL is reused; if there is no previous URL then the transfer will fail with error code CURLE_URL_MALFORMAT(3).)
#See also
Wiki home | Project page | Bugs | Become a sponsor
Text and code examples are Copyright ©2014-26 Andrew Lambert, offered under the CC BY-SA 3.0 License.