cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: downloading a file with comma in filename

From: Puneet Batra <puneetbatra79_at_yahoo.com>
Date: Thu, 17 Jun 2010 11:04:18 -0700 (PDT)

----- From server with Curl 7.15.1: ----- I use the command:/usr/bin/curl -k --ftp-ssl -u username:password ftp://host:port/,FILENAME,WITH,COMMAS -O
The output I see:  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current                                 Dload  Upload   Total   Spent    Left  Speed  0     9    0     9    0     0      3      0 --:--:--  0:00:02 --:--:--     0curl: (18) transfer closed with -9 bytes remaining to read
And the file is downloaded to the current directory, with the same name as the remote file

----- From server with Curl 7.19.6: ----- I use the same command
The output I see:  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current                                 Dload  Upload   Total   Spent    Left  Speed  0     0    0     0    0     0      0      0 --:--:--  0:00:03 --:--:--     0
And there is no file downloaded
If I replace the commas in the file name with %2C, the outcome is no different. If it helps I can run with -v and post relevant details. Thank you for your help and prompt response
--- On Thu, 6/17/10, Daniel Stenberg <daniel_at_haxx.se> wrote:

From: Daniel Stenberg <daniel_at_haxx.se>
Subject: Re: downloading a file with comma in filename
To: "the curl tool" <curl-users_at_cool.haxx.se>
Date: Thursday, June 17, 2010, 1:28 PM

On Thu, 17 Jun 2010, Puneet Batra wrote:

> I'm using curl to download files via FTP and some of the filenames have commas in them (not something I can control), this doesn't appear to be a problem in the 7.15.1 version but the transfer fails when using version 7.19.6. Is there a workaround for this?

A problem how? Tried using %2C in the URL instead of the comma?

-- 
 / daniel.haxx.se
-----Inline Attachment Follows-----
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-users
FAQ:        http://curl.haxx.se/docs/faq.html
Etiquette:  http://curl.haxx.se/mail/etiquette.html

-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-users
FAQ: http://curl.haxx.se/docs/faq.html
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2010-06-17