Funktionreferenz


_WinAPI_ParseURL


Performs rudimentary parsing of a URL

#include <WinAPIShPath.au3>
_WinAPI_ParseURL ( $sUrl )

Parameter

$sUrl The URL to be parsed.

Rückgabewert

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.

Bemerkungen

None.

Siehe auch

Suche nach ParseURL in der MSDN Bibliothek.

Beispiel

#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)