cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Special characters in GET

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Wed, 9 Apr 2008 13:21:59 +0200 (CEST)

On Wed, 9 Apr 2008, Linus Nielsen Feltzing wrote:

>> Is there any option to set so curl will take care of this conversion of
>> special characters to hex? Or what else I should to do.
>
> Check out the curl_escape() function.

Beware that this function encodes _everything_ you throw at it so you can't
just encode the entire URL.

(and curl_easy_escape() is the function to prefer for this these days)

-- 
  Commercial curl and libcurl Technical Support: http://haxx.se/curl.html
Received on 2008-04-09