HTTPLib.convertToURLEncoded

HTTPLib.convertToURLEncoded returns a Universe Resource Locator (URL), which identifies a web page or represents the resource that will be accessed by a REST service.

Package

eglx.http

Syntax
static function convertToURLEncoded(eglType string in) returns(string);
convertToURLEncoded
The input string.

The functions returns a valid URL.

Example use

Comments
The function is useful if you wish to use a URL that includes spaces or other characters that are not valid in the URL. For example, if your URL includes query parameters and the value of a parameter includes a space, the function returns a valid URL with the following characters in place of the space: %20.

HTTPLib.convertToURLEncoded is the complement of the HTTPLib.convertFromURLEncoded function.

Compatibility

Table 1. Compatibility
Target Issue
Java No issues.
JavaScript No issues.