curl-library
libcurl and deleting files from ftp server
Date: Mon, 16 May 2005 11:07:55 +0100
hello
i am using libcurl to download and delete files from an ftp server.
For some reason its taking lots of time to a delete a file compared to
downloading it!
I am using the same handle for downloading and deleting i.e i do not
disconnect and reconnect
But when i use wininet its lot quicker to delete the files. I am
running FileZilla server here are the server logs for both curl and
wininet. Take th look at the number of steps need for delets. There is
only 2 or 3 logs for wininet to delete a file but many for curl. Is
curl doing lot more work? is that why curl is taking more time to
delete files?
thanks
san
WinInet
000004) 16/05/2005 10:44:23 - (not logged in) (172.16.13.171)> 331
Password required for test
(000004) 16/05/2005 10:44:23 - (not logged in) (172.16.13.171)> PASS ****
(000004) 16/05/2005 10:44:23 - test (172.16.13.171)> 230 Logged on
(000004) 16/05/2005 10:44:30 - test (172.16.13.171)> TYPE A
(000004) 16/05/2005 10:44:30 - test (172.16.13.171)> 200 Type set to A
(000004) 16/05/2005 10:44:30 - test (172.16.13.171)> PORT 172,16,13,171,5,248
(000004) 16/05/2005 10:44:30 - test (172.16.13.171)> 200 Port command successful
(000004) 16/05/2005 10:44:30 - test (172.16.13.171)> LIST
(000004) 16/05/2005 10:44:30 - test (172.16.13.171)> 150 Opening data
channel for directory list.
(000004) 16/05/2005 10:44:30 - test (172.16.13.171)> 226 Transfer OK
(000004) 16/05/2005 10:44:30 - test (172.16.13.171)> TYPE A
(000004) 16/05/2005 10:44:30 - test (172.16.13.171)> 200 Type set to A
(000004) 16/05/2005 10:44:30 - test (172.16.13.171)> PORT 172,16,13,171,5,249
(000004) 16/05/2005 10:44:30 - test (172.16.13.171)> 200 Port command successful
(000004) 16/05/2005 10:44:30 - test (172.16.13.171)> SIZE 64420667.xml
(000004) 16/05/2005 10:44:30 - test (172.16.13.171)> 213 6275
(000004) 16/05/2005 10:44:30 - test (172.16.13.171)> RETR 64420667.xml
(000004) 16/05/2005 10:44:30 - test (172.16.13.171)> 150 Opening data
channel for file transfer.
(000004) 16/05/2005 10:44:30 - test (172.16.13.171)> 226 Transfer OK
(000004) 16/05/2005 10:44:30 - test (172.16.13.171)> TYPE A
(000004) 16/05/2005 10:44:30 - test (172.16.13.171)> 200 Type set to A
(000004) 16/05/2005 10:44:30 - test (172.16.13.171)> PORT 172,16,13,171,5,250
(000004) 16/05/2005 10:44:30 - test (172.16.13.171)> 200 Port command successful
(000004) 16/05/2005 10:44:30 - test (172.16.13.171)> SIZE 64420668.xml
(000004) 16/05/2005 10:44:30 - test (172.16.13.171)> 213 5551
(000004) 16/05/2005 10:44:30 - test (172.16.13.171)> RETR 64420668.xml
(000004) 16/05/2005 10:44:30 - test (172.16.13.171)> 150 Opening data
channel for file transfer.
(000004) 16/05/2005 10:44:30 - test (172.16.13.171)> 226 Transfer OK
(000004) 16/05/2005 10:44:30 - test (172.16.13.171)> DELE 64420667.xml
(000004) 16/05/2005 10:44:30 - test (172.16.13.171)> 250 File deleted
successfully
(000004) 16/05/2005 10:44:30 - test (172.16.13.171)> DELE 64420668.xml
(000004) 16/05/2005 10:44:30 - test (172.16.13.171)> 250 File deleted
successfully
Curl
(000007) 16/05/2005 10:48:00 - test (172.16.13.171)> LIST
(000007) 16/05/2005 10:48:00 - test (172.16.13.171)> 150 Connection accepted
(000007) 16/05/2005 10:48:00 - test (172.16.13.171)> 226 Transfer OK
(000007) 16/05/2005 10:48:00 - test (172.16.13.171)> CWD /
(000007) 16/05/2005 10:48:00 - test (172.16.13.171)> 250 CWD
successful. "/" is current directory.
(000007) 16/05/2005 10:48:00 - test (172.16.13.171)> PASV
(000007) 16/05/2005 10:48:00 - test (172.16.13.171)> 227 Entering
Passive Mode (172,16,13,171,6,22)
(000007) 16/05/2005 10:48:00 - test (172.16.13.171)> TYPE I
(000007) 16/05/2005 10:48:00 - test (172.16.13.171)> 200 Type set to I
(000007) 16/05/2005 10:48:00 - test (172.16.13.171)> SIZE 64420667.xml
(000007) 16/05/2005 10:48:00 - test (172.16.13.171)> 213 6275
(000007) 16/05/2005 10:48:00 - test (172.16.13.171)> RETR 64420667.xml
(000007) 16/05/2005 10:48:00 - test (172.16.13.171)> 150 Connection accepted
(000007) 16/05/2005 10:48:00 - test (172.16.13.171)> 226 Transfer OK
(000007) 16/05/2005 10:48:00 - test (172.16.13.171)> CWD /
(000007) 16/05/2005 10:48:00 - test (172.16.13.171)> 250 CWD
successful. "/" is current directory.
(000007) 16/05/2005 10:48:00 - test (172.16.13.171)> PASV
(000007) 16/05/2005 10:48:00 - test (172.16.13.171)> 227 Entering
Passive Mode (172,16,13,171,6,24)
(000007) 16/05/2005 10:48:00 - test (172.16.13.171)> TYPE I
(000007) 16/05/2005 10:48:00 - test (172.16.13.171)> 200 Type set to I
(000007) 16/05/2005 10:48:00 - test (172.16.13.171)> SIZE 64420668.xml
(000007) 16/05/2005 10:48:00 - test (172.16.13.171)> 213 5551
(000007) 16/05/2005 10:48:00 - test (172.16.13.171)> RETR 64420668.xml
(000007) 16/05/2005 10:48:00 - test (172.16.13.171)> 150 Connection accepted
(000007) 16/05/2005 10:48:00 - test (172.16.13.171)> 226 Transfer OK
(000007) 16/05/2005 10:48:00 - test (172.16.13.171)> DELE 64420667.xml
(000007) 16/05/2005 10:48:00 - test (172.16.13.171)> 250 File deleted
successfully
(000007) 16/05/2005 10:48:00 - test (172.16.13.171)> CWD /
(000007) 16/05/2005 10:48:00 - test (172.16.13.171)> 250 CWD
successful. "/" is current directory.
(000007) 16/05/2005 10:48:00 - test (172.16.13.171)> PASV
(000007) 16/05/2005 10:48:00 - test (172.16.13.171)> 227 Entering
Passive Mode (172,16,13,171,6,26)
(000007) 16/05/2005 10:48:00 - test (172.16.13.171)> TYPE A
(000007) 16/05/2005 10:48:00 - test (172.16.13.171)> 200 Type set to A
(000007) 16/05/2005 10:48:00 - test (172.16.13.171)> LIST
(000007) 16/05/2005 10:48:00 - test (172.16.13.171)> 150 Connection accepted
(000007) 16/05/2005 10:48:00 - test (172.16.13.171)> 226 Transfer OK
(000007) 16/05/2005 10:48:00 - test (172.16.13.171)> DELE 64420668.xml
(000007) 16/05/2005 10:48:00 - test (172.16.13.171)> 250 File deleted
successfully
(000007) 16/05/2005 10:48:00 - test (172.16.13.171)> CWD /
(000007) 16/05/2005 10:48:00 - test (172.16.13.171)> 250 CWD
successful. "/" is current directory.
(000007) 16/05/2005 10:48:00 - test (172.16.13.171)> PASV
(000007) 16/05/2005 10:48:00 - test (172.16.13.171)> 227 Entering
Passive Mode (172,16,13,171,6,28)
(000007) 16/05/2005 10:48:00 - test (172.16.13.171)> TYPE A
(000007) 16/05/2005 10:48:00 - test (172.16.13.171)> 200 Type set to A
(000007) 16/05/2005 10:48:00 - test (172.16.13.171)> LIST
(000007) 16/05/2005 10:48:00 - test (172.16.13.171)> 150 Connection accepted
(000007) 16/05/2005 10:48:00 - test (172.16.13.171)> 226 Transfer OK
Received on 2005-05-16