Converts a URL string into canonical form.
#Include <WinAPIEx.au3>
_WinAPI_UrlCanonicalize ( $sUrl, $iFlags )
$sUrl | The URL. |
$iFlags | The flags that specify how the URL is to be converted. It can be a combination of the following values. $URL_DONT_SIMPLIFY $URL_ESCAPE_PERCENT $URL_ESCAPE_SPACES_ONLY $URL_ESCAPE_UNSAFE $URL_NO_META $URL_PLUGGABLE_PROTOCOL $URL_UNESCAPE Windows 7 or later $URL_ESCAPE_AS_UTF8 |
Success | The converted URL. |
Failure | Empty string and sets the @error flag to non-zero, @extended flag may contain the system error code. |
在MSDN中搜索
#Include <APIConstants.au3>
#Include <WinAPIEx.au3>
Opt('MustDeclareVars', 1)
Global $Url = 'http://msdn.microsoft.com/en-us/library/ee663300%28VS.85%29.aspx'
ConsoleWrite(_WinAPI_UrlCanonicalize($Url, $URL_UNESCAPE) & @CR)