1curl_easy_escape(3)             libcurl Manual             curl_easy_escape(3)
2
3
4

NAME

6       curl_easy_escape - URL encodes the given string
7

SYNOPSIS

9       #include <curl/curl.h>
10
11       char *curl_easy_escape( CURL *curl, char *url, int length );
12

DESCRIPTION

14       This  function converts the given input string to an URL encoded string
15       and returns that as a new allocated string. All input  characters  that
16       are not a-z, A-Z, 0-9, '-', '.', '_' or '~' are converted to their "URL
17       escaped" version (%NN where NN is a two-digit hexadecimal number).
18
19       If the length argument is set to  0  (zero),  curl_easy_escape(3)  uses
20       strlen() on the input url to find out the size.
21
22       You must curl_free(3) the returned string when you're done with it.
23

AVAILABILITY

25       Added in 7.15.4 and replaces the old curl_escape(3) function.
26

RETURN VALUE

28       A pointer to a zero terminated string or NULL if it failed.
29

SEE ALSO

31       curl_easy_unescape(3), curl_free(3), RFC2396
32
33
34
35libcurl 7.15.4                   7 April 2006              curl_easy_escape(3)
Impressum