cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: URL Encoding?

From: Andrés García <fandom_at_retemail.es>
Date: Thu, 8 Apr 2004 00:40:02 -0400

> Is there a libcurl option/function that would provide
> URL encoding of the data that gets sent to the HTTP
> server?

You have got curl_escape, from the docs:

This function will convert the given input string to an URL encoded string and
return that as a new allocated string. All input characters that are not a-z,
A-Z or 0-9 will be converted to their "URL escaped" version (%NN where NN is
a two-digit hexadecimal number)

Andres
Received on 2004-04-08