cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: How to encode names for FTP ?

From: Silex <silex0r_at_gmail.com>
Date: Tue, 4 Apr 2006 17:51:12 +0200

> Well, it says you specify a URL with it and that RFC details how a URL is
> written.

Hum, you are right but some people (like me) think about url encoding
when it comes to do http POST/GET and not about the url itself. Now I
learned something ;)

> But sure, do you have any suggested phrasing to add to the man page?

Well, something along these lines would be helpful I think :

The url given to CURLOPT_URL must be url-encoded following the RFC
2396 (http://curl.haxx.se/rfc/rfc2396.txt). This more or less mean
you should use curl_escape() on each part that you use to build the
url ( for example when you have weird folder / file names ).

Keep up the good work :)
Philippe
Received on 2006-04-04