UrlEscape

<< Click to Display Table of Contents >>

Navigation:  ThinBASIC Modules > MSXML2 > Utility Functions >

UrlEscape

 

Description

 

Converts characters in a URL that might be altered during transport across the Internet ("unsafe" characters) into their corresponding escape sequences.

 

Syntax

 

s = UrlEscape(Url [, lOptions])

 

Returns

 

String.

 

Parameters

 

Name

Type

Optional

Meaning

Url

String

No

Complete Url string defining the name of the requested page

lOptions

Number

Yes

One or more of the following options connected by OR:

 

%URL_DONT_ESCAPE_EXTRA_INFO

 

%URL_BROWSER_MODE

 

%URL_ESCAPE_SPACES_ONLY

 

%URL_ESCAPE_PERCENT

 

%URL_ESCAPE_SEGMENT_ONLY

 

%URL_ESCAPE_AS_UTF8

 

%URL_ESCAPE_ASCII_URI_COMPONENT

 

If no options specified %URL_ESCAPE_SPACES_ONLY will be used.

 

Remarks

 

Additional information can be found at: https://learn.microsoft.com/en-us/windows/win32/api/shlwapi/nf-shlwapi-urlescapea

 

Restrictions

 

 

See also

 

Examples