curl-library
Re: FTP Upload
Date: Mon, 19 Nov 2007 14:43:28 +0000 (UTC)
Daniel Stenberg <daniel <at> haxx.se> writes:
>
> On Wed, 14 Nov 2007, Conrad wrote:
>
> > I want upload files by FTP. I can get this to work but only if I have a
> > file in the destination directory already which I have specified in
> > CURLOPT_URL. Is there a way to FTP files to an empty directory? If I leave
> > the destination directory empty, I get an error saying the file can't be
> > found. If I leave the filename off the URL, the URL is not accepted.
>
> libcurl version on what operating system?
>
> Can you show us a full command/response sequence that libcurl sends and
> receives when it hits this problem?
>
I'm using 7.16.2 on Windows XP. I sending the file to a Linux machine. Here's
what happens:
PWD
257 "/"
successful.
Entry path is '/'
MDTM test.txt
550 Could not get file modification time.
Given file does not exist
Remembering we are in dir test.txt
Uploaded unaligned file size (0 out of 38454 bytes)
Connection #0 to host petroseikon.dyndns.org left intact
QUIT
Received on 2007-11-19