cURL / Mailing Lists / curl-library / Single Mail

curl-library

Problems with GetFile

From: Giorgos Poulis <gpou_at_intracom.gr>
Date: Thu, 13 Dec 2001 10:08:23 +0200

This the output of curl when i set VERBOSE to true

in the first case i list the files of the directory and then i retrieve the file, and it comes with zero length.
in the second case i only attempt to get the file, and the files is received normaly.
I am using Curl-7.9.1 under AIX operating system

WRONG
=====
list /users/kdimou
FTP FULL: ftp://tmnpdc//users/kdimou/
< 220 Welcome to "TMNPDC" Cerberus FTP Server
> USER tmnuser
< 331 User tmnuser Ok, password please
> PASS tmnuser
< 230 Password Ok, User logged in
* We have successfully logged in
> PWD
< 257 "/" is the current directory
* Entry path is '/'
* Connected to tmnpdc (146.124.111.61)
> CWD /users/kdimou
< 250 Change directory ok
> PASV
< 227 Listening on (146,124,111,61,4,78)
* Connecting to 146.124.111.61 ((nil)) port 1102
* Connected the data stream!
> TYPE A
< 200 Type ASCII
> LIST
< 150 Opening data connection
* Getting file with size: -1
< 226 Transfer complete
* Connection #0 left intact
BUFFER:
d---rw-rw- 1 user group 0 Sep 19 2001 .
d---rw-rw- 1 user group 0 Sep 19 2001 ..
----rw-rw- 1 user group 32113 Dec 07 08:43 pmd.c
----rw-rw- 1 user group 8990 Dec 10 12:26 ts_ntmq3_prsfr01430.spf
----rw-rw- 1 user group 8048 Dec 10 12:26 ts_ntmq3_prsfr01435.spf
----rw-rw- 1 user group 16808 Dec 10 12:26 ts_ntmq3_prsfr01525.spf
----rw-rw- 1 user group 8048 Dec 10 12:26 ts_ntmq3_prsfr01530.spf
----rw-rw- 1 user group 8048 Dec 10 12:26 ts_ntmq3_prsfr01535.spf
----rw-rw- 1 user group 8048 Dec 10 12:26 ts_ntmq3_prsfr01540.spf

* Re-using existing connection! (#0)
* Connected to (146.124.111.61)
> CWD /
< 250 Change directory ok
> CWD /users/kdimou
< 250 Change directory ok
> PASV
< 227 Listening on (146,124,111,61,4,79)
* Connecting to 146.124.111.61 ((nil)) port 1103
* Connected the data stream!
> TYPE I
< 200 Type Binary
> RETR pmd.c
< 150 Opening data connection
* Getting file with size: -1
< 226 Transfer complete
* Connection #0 left intact
FILE TIME: Thu Jan 1 02:00:00 1970
FILE SIZE: 0
* Closing connection #0

GOOD
====
< 220 Welcome to "TMNPDC" Cerberus FTP Server
> USER tmnuser
< 331 User tmnuser Ok, password please
> PASS tmnuser
< 230 Password Ok, User logged in
* We have successfully logged in
> PWD
< 257 "/" is the current directory
* Entry path is '/'
* Connected to tmnpdc (146.124.111.61)
> CWD /users/kdimou
< 250 Change directory ok
> PASV
< 227 Listening on (146,124,111,61,4,80)
* Connecting to 146.124.111.61 ((nil)) port 1104
* Connected the data stream!
> TYPE I
< 200 Type Binary
> RETR pmd.c
< 150 Opening data connection
* Getting file with size: -1
< 226 Transfer complete
* Connection #0 left intact
FILE TIME: Thu Jan 1 02:00:00 1970
FILE SIZE: 32113
* Closing connection #0

Received on 2001-12-13