Daniel Stenberg wrote:
Hey
(I don't like how there's no info on the bug report page on how to make
a reply that reaches the submitter as well, and I can never remember the
adress I should use for it.)
Can you please submit a log using -v or --trace-ascii that shows exactly
what the ftp server responded for this case to allow us to understand
this better and thus make a better fix?
Hi there.
(reporting: I agree, report wishlist bug :-))
~$ curl --version
curl 7.13.2 (i386-pc-linux-gnu) libcurl/7.13.2 OpenSSL/0.9.7e zlib/1.2.2
libidn/0.5.13
Protocols: ftp gopher telnet dict ldap http file https ftps
Features: IDN IPv6 Largefile NTLM SSL libz
## 001 Existing PATH, but Missing "/" at the end:
/tmp$ curl -v -T TEESTT -u username:myPAsW
ftp://www.WEBSERVER.sk/public_html
* About to connect() to www.WEBSERVER.sk port 21
* Trying 217.67.30.26... * connected
* Connected to www.WEBSERVER.sk (217.67.30.26) port 21
< 220 FTP Server ready.
> USER username
< 331 Password required for username.
> PASS myPAsW
< 230 User username logged in.
* We have successfully logged in
> PWD
< 257 "/" is current directory.
* Entry path is '/'
* protocol connect phase DONE
* DO phase starts
> EPSV
* Connect data stream passively
< 229 Entering Extended Passive Mode (|||62332|)
* Trying 217.67.30.26... * connected
* Connecting to 217.67.30.26 (217.67.30.26) port 62332
* DO phase is comlete
* DO-MORE phase starts
> TYPE I
< 200 Type set to I
> STOR public_html
< 550 public_html: Not a regular file
* Failed FTP upload: 550
* DO-MORE phase ends
* Uploaded unaligned file size (0 out of 2 bytes)
* Closing connection #0
curl: (25) Failed FTP upload: 550
## 002 Existing path
/tmp$ curl -v -T TEESTT -u username:myPAsW
ftp://www.WEBSERVER.sk/public_html/
* About to connect() to www.WEBSERVER.sk port 21
* Trying 217.67.30.26... * connected
* Connected to www.WEBSERVER.sk (217.67.30.26) port 21
< 220 FTP Server ready.
> USER username
< 331 Password required for username.
> PASS myPAsW
< 230 User username logged in.
* We have successfully logged in
> PWD
< 257 "/" is current directory.
* Entry path is '/'
* protocol connect phase DONE
* DO phase starts
> CWD public_html
< 250 CWD command successful
> EPSV
* Connect data stream passively
< 229 Entering Extended Passive Mode (|||60520|)
* Trying 217.67.30.26... * connected
* Connecting to 217.67.30.26 (217.67.30.26) port 60520
* DO phase is comlete
* DO-MORE phase starts
> TYPE I
< 200 Type set to I
> STOR TEESTT
< 150 Opening BINARY mode data connection for TEESTT
* DO-MORE phase ends
* Remembering we are in dir public_html/
< 226 Transfer complete.
* Connection #0 to host www.WEBSERVER.sk left intact
> QUIT
< 221 Goodbye.
* Closing connection #0
## 003 Not existing path with missing "/" et the END works - IMO OK,
because it accepts blahblah like name for remote file instead of TEESTT
/tmp$ curl -v -T TEESTT -u username:myPAsW
ftp://www.WEBSERVER.sk/public_html/blahblah
* About to connect() to www.WEBSERVER.sk port 21
* Trying 217.67.30.26... * connected
* Connected to www.WEBSERVER.sk (217.67.30.26) port 21
< 220 FTP Server ready.
> USER username
< 331 Password required for username.
> PASS myPAsW
< 230 User username logged in.
* We have successfully logged in
> PWD
< 257 "/" is current directory.
* Entry path is '/'
* protocol connect phase DONE
* DO phase starts
> CWD public_html
< 250 CWD command successful
> EPSV
* Connect data stream passively
< 229 Entering Extended Passive Mode (|||61904|)
* Trying 217.67.30.26... * connected
* Connecting to 217.67.30.26 (217.67.30.26) port 61904
* DO phase is comlete
* DO-MORE phase starts
> TYPE I
< 200 Type set to I
> STOR blahblah
< 150 Opening BINARY mode data connection for blahblah
* DO-MORE phase ends
* Remembering we are in dir public_html/
< 226 Transfer complete.
* Connection #0 to host www.WEBSERVER.sk left intact
> QUIT
< 221 Goodbye.
* Closing connection #0
## 004A FINAL test - not existing path - correctly written
/tmp$ curl -v -T TEESTT -u username:myPAsW
ftp://www.WEBSERVER.sk/public_html/blahblah/
* About to connect() to www.WEBSERVER.sk port 21
* Trying 217.67.30.26... * connected
* Connected to www.WEBSERVER.sk (217.67.30.26) port 21
< 220 FTP Server ready.
> USER username
< 331 Password required for username.
> PASS myPAsW
< 230 User username logged in.
* We have successfully logged in
> PWD
< 257 "/" is current directory.
* Entry path is '/'
* protocol connect phase DONE
* DO phase starts
> CWD public_html
< 250 CWD command successful
> CWD blahblah
< 550 blahblah: No such file or directory
* DO phase is comlete
* Remembering we are in dir public_html/blahblah/TEESTT
* Uploaded unaligned file size (0 out of 2 bytes)
* Closing connection #0
curl: (9) Uploaded unaligned file size (0 out of 2 bytes)
## 004B FINAL test - not existing path - correctly written
curl --trace-ascii loglog -T TEESTT -u username:myPAsW
ftp://www.WEBSERVER.sk/public_html/blahblah/
== Info: About to connect() to www.WEBSERVER.sk port 21
== Info: Trying 217.67.30.26... == Info: connected
== Info: Connected to www.WEBSERVER.sk (217.67.30.26) port 21
<= Recv header, 23 bytes (0x17)
0000: 220 FTP Server ready.
=> Send header, 13 bytes (0xd)
0000: USER username
<= Recv header, 35 bytes (0x23)
0000: 331 Password required for username.
=> Send header, 17 bytes (0x11)
0000: PASS myPAsW
<= Recv header, 28 bytes (0x1c)
0000: 230 User username logged in.
== Info: We have successfully logged in
=> Send header, 5 bytes (0x5)
0000: PWD
<= Recv header, 31 bytes (0x1f)
0000: 257 "/" is current directory.
== Info: Entry path is '/'
== Info: protocol connect phase DONE
== Info: DO phase starts
=> Send header, 17 bytes (0x11)
0000: CWD public_html
<= Recv header, 28 bytes (0x1c)
0000: 250 CWD command successful
=> Send header, 14 bytes (0xe)
0000: CWD blahblah
<= Recv header, 41 bytes (0x29)
0000: 550 blahblah: No such file or directory
== Info: DO phase is comlete
== Info: Remembering we are in dir public_html/blahblah/TEESTT
== Info: Uploaded unaligned file size (0 out of 2 bytes)
== Info: Closing connection #0
## 004C FINAL test - not existing path - correctly written
curl --trace loglogNOASCII -T TEESTT -u username:myPAsW
ftp://www.WEBSERVER.sk/public_html/blahblah/
== Info: About to connect() to www.WEBSERVER.sk port 21
== Info: Trying 217.67.30.26... == Info: connected
== Info: Connected to www.WEBSERVER.sk (217.67.30.26) port 21
<= Recv header, 23 bytes (0x17)
0000: 32 32 30 20 46 54 50 20 53 65 72 76 65 72 20 72 220 FTP Server r
0010: 65 61 64 79 2e 0d 0a eady...
=> Send header, 13 bytes (0xd)
0000: 55 53 45 52 20 6b 75 6e 64 65 72 0d 0a USER username..
<= Recv header, 35 bytes (0x23)
0000: 33 33 31 20 50 61 73 73 77 6f 72 64 20 72 65 71 331 Password req
0010: 75 69 72 65 64 20 66 6f 72 20 6b 75 6e 64 65 72 uired for username
0020: 2e 0d 0a ...
=> Send header, 17 bytes (0x11)
0000: 50 41 53 53 20 6c 65 6b 75 36 31 39 32 32 34 0d PASS myPAsW.
0010: 0a .
<= Recv header, 28 bytes (0x1c)
0000: 32 33 30 20 55 73 65 72 20 6b 75 6e 64 65 72 20 230 User username
0010: 6c 6f 67 67 65 64 20 69 6e 2e 0d 0a logged in...
== Info: We have successfully logged in
=> Send header, 5 bytes (0x5)
0000: 50 57 44 0d 0a PWD..
<= Recv header, 31 bytes (0x1f)
0000: 32 35 37 20 22 2f 22 20 69 73 20 63 75 72 72 65 257 "/" is curre
0010: 6e 74 20 64 69 72 65 63 74 6f 72 79 2e 0d 0a nt directory...
== Info: Entry path is '/'
== Info: protocol connect phase DONE
== Info: DO phase starts
=> Send header, 17 bytes (0x11)
0000: 43 57 44 20 70 75 62 6c 69 63 5f 68 74 6d 6c 0d CWD public_html.
0010: 0a .
<= Recv header, 28 bytes (0x1c)
0000: 32 35 30 20 43 57 44 20 63 6f 6d 6d 61 6e 64 20 250 CWD command
0010: 73 75 63 63 65 73 73 66 75 6c 0d 0a successful..
=> Send header, 14 bytes (0xe)
0000: 43 57 44 20 62 6c 61 68 62 6c 61 68 0d 0a CWD blahblah..
<= Recv header, 41 bytes (0x29)
0000: 35 35 30 20 62 6c 61 68 62 6c 61 68 3a 20 4e 6f 550 blahblah: No
0010: 20 73 75 63 68 20 66 69 6c 65 20 6f 72 20 64 69 such file or di
0020: 72 65 63 74 6f 72 79 0d 0a rectory..
== Info: DO phase is comlete
== Info: Remembering we are in dir public_html/blahblah/TEESTT
== Info: Uploaded unaligned file size (0 out of 2 bytes)
== Info: Closing connection #0
If you will need any more reports or anything - ask for them.
THANKS for curl!
--
Jan Kunder
jan.kunderSPAMMMMgmail.com
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]