cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: FTP login home

From: Daniel Beardsmore <public_at_telcontar.net>
Date: Thu, 01 Feb 2007 23:15:59 +0000

Doug McNutt wrote:
> At 17:22 -0500 2/1/07, Andrew D wrote:
>> Hi all, I am using curl to upload to a FTP site. At the root level of
>> the FTP server there are 3 directories VOL1, VOL2 and VOL3. My login
>> places me in a sub directory of VOL2. My curl command looks like this:
>> curl -v -P w --ftp-create-dirs -T /Users/markb/Desktop/100094_.eps
>> ftp://USER:PASS@ipaddress/VOL1/Matrix/10/1001/
>>
>> The ouput from this contains the line "> CWD VOL1" and because the
>> directory VOL1 doesn't exist in my home directory it creates it. How
>> would I get curl to go to "/VOL1/"
>
> ftp://USER:PASS@ipaddress//VOL1/Matrix/10/1001/
>
> Note the double slash.

....??

Is this something cURL requires? Since when do you need a double slash
there? It is absolutely not necessary for every FTP client I've ever
seen, be that Win IE, Firefox, FlashFXP, Fetch, Transmit ...

For example, this works:

ftp://publicuser:publicpw@my.FTP.server:2161//Music//MP3//Game//

Note that I doubled every path slash. (This is also valid:
//Music/////MP3/////Game/////, but more than two slashes for root, for
Firefox + Bulletproof, is not)

Adjacent slashes are generally reduced to one.
Received on 2007-02-02