question about EZDAVLIB

Help
2000-06-13
2013-03-25
  • George Kearns

    George Kearns - 2000-06-13

    I'm trying to write a program for Win32 in Delphi 5 Enterprise, and I would like to use the EZDAVLIB library. Can someone please give me a quick code snippet on how to create a connection to a dav-enabled web server?

    If this is not the appropriate place for such a question, my apologies.

    TIA

     
    • Chung Leong

      Chung Leong - 2000-07-21

      It's easy. Here's a snippet.

      var Connection : HTTP_CONNECTION;
          Server, User, Password : string;
          RemoteFilePath, LocalFilePath : string;
      begin
      Server := 'www.server.net';
      User := 'login';
      Password := 'qwerty';
      RemoteFilePath := '/index.htm';
      LocalFilePAth := 'C:\Windows\Desktop';
      if dav_connect(Connection, PChar(Server), 80, PChar(User), PChar(Password)) then
      begin
      dav_copy_from_server(Connection, PChar(RemoteFilePath), PChar(LocalFilePath));
      dav_disconnect(Connection);
      end;

       
      • rajat

        rajat - 2000-08-13

        I'm trying to write a program for Win32 in Visual c++ Enterprise, and I would like to use the EZDAVLIB library. Can someone please give me a quick code snippet on how to create a connection to a dav-enabled web server?

        If this is not the appropriate place for such a question, my apologies.

        TIA

         
    • Matthieu BRUN

      Matthieu BRUN - 2002-04-29

      Hi !

      My call of dav_connect always return false !!!
      The connection with a webdav client is ok but
      not with the dav_connect call !!

      var
      Server, User, Password : Pchar;
      Port : Integer ;
      RemoteFilePath, LocalFilePath : string;
      begin
      Server := 'webdav.cyberteams.com';
      Port := 8080 ;
      User := 'matilus ';
      Password := '********';
      RemoteFilePath := '/index.htm';
      LocalFilePAth := 'C:\';
      if dav_connect(Conn, Server, Port, User, Password) then
      begin
      dav_copy_from_server(Conn, PChar(RemoteFilePath), PChar(LocalFilePath));
      dav_disconnect(Conn);
      end;

      Can someone help me ?

      Matthieu. (matthieu.brun@tracingserver.com)

       
    • BurnT

      BurnT - 2005-10-19

      I have a similar problem, though using VS2003. My code-snippet:

      const char* user = "root";
      const char* password = "root";
      const char* server = "localhost";
      HTTP_CONNECTION **connection;
      if (dav_connect(connection, server, 8081, user, password))
      {
      do something
      }
      else
      {
      do something else
      }

      Unfortunately I only get in the else-part of the code. For testing purposes I have a local server running (thus I'm able to access it on ie at url: http://localhost:8081\)

      any help on how to correctly implement the API would be appreciated. Thanks,

      BurnT

       

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks