Makes a case-sensitive comparison of two URL strings
#include <WinAPIShPath.au3>
_WinAPI_UrlCompare ( $sUrl1, $sUrl2 [, $bIgnoreSlash = False] )
$sUrl1 | The first URL. |
$sUrl2 | The second URL. |
$bIgnoreSlash | [optional] Specifies whether to ignore a trailing '/' character on either or both URLs, valid values: True - The function ignores a trailing characters. False - The function takes into account the trailing characters (Default). |
For best results, you should first canonicalize the URLs with _WinAPI_UrlCanonicalize(). Then, compare the
canonicalized URLs with _WinAPI_UrlCompare().
Search UrlCompare in MSDN Library.
#include <WinAPIShPath.au3>
Local $sUrl1 = 'http://xyz/abc/'
Local $sUrl2 = 'http://xyz/abc'
ConsoleWrite('URLs comparison result: ' & _WinAPI_UrlCompare($sUrl1, $sUrl2) & @CRLF)