Skip to content
Andrew Lambert edited this page Jun 13, 2015 · 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.

##Notes 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 an easy_handle to encode data. If EasyItem is not Nil, then the EasyItem is used; otherwise a new EasyItem is constructed.

##See also

Clone this wiki locally