Skip to content
Andrew Lambert edited this page Nov 7, 2023 · 17 revisions

libcURL.URLEncode

Method Signature

 Protected Function URLEncode(Data As String, Optional EasyItem As libcURL.EasyHandle) As String

Parameters

Name Type Comment
Data String The string to encode
EasyItem EasyHandle Optional. An easy handle to use

Return value

The encoded string.

Remarks

This method provides access to the curl_easy_escape function of libcURL; modern versions of REALbasic and Xojo provide the EncodeURLComponent method which should be preferred over this method.

curl_easy_escape needs a curl_easy handle to encode data. If EasyItem is not Nil, then the EasyItem is used; otherwise a new EasyHandle is constructed.

Requirements

This function is available from libcurl-7.15.4. Calling this method in earlier versions will raise a cURLException with error number libcURL.Errors.FEATURE_UNAVAILABLE (-4).

See also

Clone this wiki locally