cURL / Mailing Lists / curl-users / Single Mail

curl-users

how to change to higher dir?

From: Barry Ringuet <bringuet_at_loomissayles.com>
Date: Wed, 18 May 2005 09:25:35 -0400

hi, using curl 7.8, trying this:
curl -O -v -u someuser:somepass ftp://some.ftpserver.com/somedir/somefile
and get this:
< 220 Welcome to the blah Server. Authorized use only. Access is monitored.
Time = 08:55:19
> USER someuser
< 331 Password required for someuser.
> PASS somepass
< 230 Connect:Enterprise UNIX login ok, access restrictions apply.
* We have successfully logged in
> PWD
< 257 "/someotherdir" is current directory.
* Entry path is '/someotherdir'
* Connected to 6.6.6.6
> CWD somedir
< 550 invalid pathname: 'somedir'.
curl: (9) Couldn't change to directory somedir
* Closing live connection (#0)

have confirmed that somedir can be cd'd to, interactively, but have to do
cd /somedir after logging in...

this is kinda what I want to do:
curl -O -v -u someuser:somepass
ftp://some.ftpserver.com/../somedir/somefile
but, obviously, can't...

appreciate you help
barry ringuet
Received on 2005-05-18