standard.net.curl.curl_easy_escape

curl_easy_escape is available since version 1.0.

Prototype:

string curl_easy_escape(number handle, string url)

Parameters

handle
the CURL handle as returned by curl_easy_init
url
the url

Description:

URL encodes the given string.

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

Return value:

Returns the encoded string.