Performs rudimentary parsing of a URL
#include <WinAPIShPath.au3>
_WinAPI_ParseURL ( $sUrl )
$sUrl | The URL to be parsed. |
Success: | The array containing the following information: [0] - The protocol part of the URL. [1] - The section of the URL that follows the protocol and colon (":"). [2] - The URL scheme (one of the $URL_SCHEME_* constants). |
Failure: | Sets the @error flag to non-zero, @extended flag may contain the HRESULT error code. |
Search ParseURL in MSDN Library.
#include <WinAPIShPath.au3>
Local $aData = _WinAPI_ParseURL('http://www.microsoft.com')
ConsoleWrite('Protocol: ' & $aData[0] & @CRLF)
ConsoleWrite('Suffix: ' & $aData[1] & @CRLF)
ConsoleWrite('Scheme: ' & $aData[2] & @CRLF)