curl-users
Re: how to change to higher dir?
Date: Wed, 18 May 2005 10:10:40 -0400
dan, got it, with later ver & //
curl -O -v -u someuser:somepass ftp://someftpserver.com//somedir/somefile
many thanks
barry ringuet
Daniel Stenberg
<daniel-curl_at_haxx
.se> To
Sent by: curl tool talk
curl-users-bounce <curl-users_at_cool.haxx.se>
s_at_cool.haxx.se cc
Subject
05/18/2005 09:48 Re: how to change to higher dir?
AM
Please respond to
curl tool talk
<curl-users_at_cool.
haxx.se>
On Wed, 18 May 2005, Barry Ringuet wrote:
> hi, using curl 7.8, trying this:
7.8? That is very soon 4 years old...
> 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...
Why can't you?
... or why not use an extra slash before the first dir:
ftp://some.ftpserver.com//somedir/somefile
The RFC-way of specifying a URL that changes to the root dir looks like
this:
ftp://some.ftpserver.com/%2fsomedir/somefile
... which also is supported by (recent) curl.
-- Commercial curl and libcurl Technical Support: http://haxx.se/curl.htmlReceived on 2005-05-18