cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: URL Encoding issues

From: Dan Fandrich <dan_at_coneharvesters.com>
Date: Tue, 28 Sep 2010 12:41:30 -0700

On Tue, Sep 28, 2010 at 02:50:44PM -0430, MigueL DíaZ wrote:
> Characters - _ . and ~ should not be encoded as specification says (http://
> tools.ietf.org/html/rfc3986#section-2.3)
>
> By now I'm "patching" the result from curl_easy_escape by manually converting
> back the encoded version of those characters, but I'd be interested to know if
> there would be a fix for this in a new release.

I agree. curl_easy_escape encodes everything other than alphanumerics,
but it should really leave all the "unreserved" characters alone according
to spec. That breaks 100% backward compatibility, but it would make
the function more correct.

>>> Dan
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2010-09-28