Discuss this help topic in SecureBlackbox Forum


TElHTTPSWebDAVClient     See also     

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

Copies a remote resource to another location.


    int Copy(string SrcURL, string DestURL, TSBWebDAVDepth Depth, bool Overwrite, string IfHeader);

    Function Copy(ByVal SrcURL As String, ByVal DestURL As String, ByVal Depth As TSBWebDAVDepth, ByVal Overwrite As Boolean, ByVal IfHeader As String) As Integer

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

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

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

    int copy(String SrcURL, String DestURL, TSBWebDAVDepth Depth, boolean Overwrite, String IfHeader);


  • 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.


    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