cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: how to avoid ftp automatic redirects

From: Dan Fandrich <dan_at_coneharvesters.com>
Date: Wed, 10 Oct 2007 11:43:20 -0700

On Wed, Oct 10, 2007 at 11:19:24AM -0500, Seb wrote:
> I recently encountered a problem uploading files to a ftp server, which
> automatically redirects me to a particular directory after logging in:
>
> ---<---------------cut here---------------start-------------->---
> curl --disable-epsv -u user:pwd -T test.txt ftp://root.dir/rest/of/path

If you are specifying an absolute path, you need to add an extra slash in
front of it: ftp://root.dir//rest/of/path

>>> Dan

-- 
http://www.MoveAnnouncer.com              The web change of address service
          Let webmasters know that your web site has moved
Received on 2007-10-10