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. |
None.
Suche nach ParseURL in der MSDN Bibliothek.
#include <WinAPIShPath.au3>
Local $aData = _WinAPI_ParseURL('http://www.microsoft.com')
ConsoleWrite('Protokoll: ' & $aData[0] & @CRLF)
ConsoleWrite('Suffix: ' & $aData[1] & @CRLF)
ConsoleWrite('Schema: ' & $aData[2] & @CRLF)