| |
|
|
|
cURL Mailing List Monthly Index Single Mail
curl-library Mailing List Archives
Re: How to encode names for FTP ?
From: Daniel Stenberg <daniel_at_haxx.se>
Date: Mon, 3 Apr 2006 09:41:45 +0200 (CEST)
On Fri, 31 Mar 2006, Silex wrote:
> Basically, I'm uploading a file and its name may contains spaces or weird
Then upload to a URL and encode the URL properly - URL encoded is usually the
> As far as I understood, whenever I set CURLOPT_URL, I must replace the %
Yes, all reservered characters must be replaced with %HH where HH is the
> I must not try to add quotes or whatever if there's a space in the file
A space is %20 in a URL.
> It seems that I should *not* use curl_escape for that because otherwise
When you create a URL you need to escape each individual part of the URL and
> Now, after uploading the file, I use a curl_slist along with
No. The *QUOTE options are plain strings you send to the FTP server unmodified
-- Commercial curl and libcurl Technical Support: http://haxx.se/curl.htmlReceived on 2006-04-03 These mail archives are generated by hypermail. |
Page updated November 12, 2010.
web site info