Discuss this help topic in SecureBlackbox Forum

TElHTTPSWebDAVClient.Copy

TElHTTPSWebDAVClient     See also     


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


Copies a remote resource to another location.

Declaration

[C#]
    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; Depth : TSBWebDAVDepth = wddInfinity; Overwrite : boolean = false; IncludeDepth : boolean = true; 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)

[Java]
    int copy(String SrcURL, String DestURL, TSBWebDAVDepth Depth, boolean 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.
  • IncludeDepth -

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