-
-
Notifications
You must be signed in to change notification settings - Fork 11
libcURL.cURLClient.Put
#libcURL.cURLClient.Put
Function Put(URL As String, Data As MemoryBlock, WriteTo As Writeable = Nil) As Boolean
Function Put(URL As String, ReadFrom As Readable, WriteTo As Writeable = Nil) As Boolean
Sub Put(URL As String, Data As MemoryBlock, WriteTo As Writeable = Nil)
Sub Put(URL As String, ReadFrom As Readable, WriteTo As Writeable = Nil)###Put(String, MemoryBlock, Writeable)
| Name | Type | Comment |
|---|---|---|
| URL | String |
The RFC 3986 URI to put. |
| Data | MemoryBlock |
A MemoryBlock containing the entire upload. |
| WriteTo | Writeable |
Optional. Downloaded data (if any) will be written to this object. If this parameter is Nil then use GetDownloadedData. |
###Put(String, Readable, Writeable)
| Name | Type | Comment |
|---|---|---|
| URL | String |
The RFC 3986 URI to put. |
| ReadFrom | Readable |
Uploaded data will be read from this object. |
| WriteTo | Writeable |
Optional. Downloaded data (if any) will be written to this object. If this parameter is Nil then use GetDownloadedData. |
The synchronous versions of this method return True on success..
Upload the stream represented by ReadFrom or the data represented by Data using protocol-appropriate semantics (http PUT, ftp STOR, etc.)
The protocol is inferred by libcURL; explicitly specify the protocol in the URL to avoid bad guesses.
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.