Discuss this help topic in SecureBlackbox Forum

TElHTTPSWebDAVClient.Copy

TElHTTPSWebDAVClient     See also     


Filter: C#/Java  VB.NET  Pascal  C++  PHP  


Copies a remote resource to another location.

Declaration

[C#/Java]
    int Copy(string SrcURL, string DestURL, TSBWebDAVDepth Depth, bool Overwrite, string IfHeader);

[VB.NET]
    Function Copy(ByVal SrcURL As String, ByVal DestURL As String, ByVal Depth As TSBWebDAVDepth, ByVal Overwrite As Boolean, ByVal IfHeader As String) As Integer

[Pascal]
    function Copy(const SrcURL, DestURL : string; const Depth : TSBWebDAVDepth = 2; const Overwrite : boolean = false; const IfHeader : string = "") : integer;

[C++]
    int32_t Copy(const std::string &SrcURL, const std::string &DestURL, TSBWebDAVDepth Depth, bool Overwrite, const std::string &IfHeader);

[PHP]
    integer Copy(string $SrcURL, string $DestURL, integer $Depth, bool $Overwrite, string $IfHeader)

Parameters

  • SrcURL - URL of the resource to be copied.
  • DestURL - destination URL.
  • Depth - the depth of the request.
  • Overwrite - specifies whether to overwrite existing resources.
  • ifheader - specifies the If header of the request.

Depth values:


Return value

    On success, returns server status code, otherwise returns -1.

Description

    Use this method to send a COPY request to the server (to copy a remote resource to the desired location).

See also:     Delete     Move    

Discuss this help topic in SecureBlackbox Forum