cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: regression or bug in FTP CWD function ?

From: Sebastien WILLEMIJNS <sebastien_at_willemijns.com>
Date: Sun, 27 May 2012 00:22:29 +0200

On Sat, May 26, 2012, at 23:06, Daniel Stenberg wrote:
> On Sat, 26 May 2012, Sebastien WILLEMIJNS wrote:
>
> > on this curl.cfg file, why they are no "CWD httpdocs" ????
> >
> > url="ftp://pf3.free-h.org/httpdocs"
>
> Because this URL identifies a file named 'httpdocs' in the directory your
> user
> logs in to. This is not a regression but curl has always worked like
> this.

sorry the main report did not contain the uploaded file, it was with
"curl.exe -K c:\curl.cfg -T "favicon.ico"

now i add it on CFG file and the trouble still remains :-(

url="ftp://pf3.free-h.org/httpdocs"
user="vivil.free-h_60:xxxxxxx"
ftp-create-dirs
max-time="75"
connect-timeout="17"
write-out="%{size_upload} bytes - %{speed_upload} bytes/seconds \n"
trace=c:\html\curltrc
upload-file="favicon.ico"

*****************************************

0000: STOR httpdocs
<= Recv header, 38 bytes (0x26)
0000: 550 httpdocs : fichier non r..gulier
== Info: Failed FTP upload: 550
== Info: Remembering we are in dir ""
== Info: Uploaded unaligned file size (0 out of 1406 bytes)
== Info: Connection #0 to host pf3.free-h.org left intact
=> Send header, 6 bytes (0x6)
0000: QUIT
<= Recv header, 16 bytes (0x10)
0000: 221 Au revoir.
== Info: Closing connection #0

-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-users
FAQ: http://curl.haxx.se/docs/faq.html
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2012-05-27