Function Reference


_WinAPI_ParseURL

Performs rudimentary parsing of a URL

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

Parameters

$sUrl The URL to be parsed.

Return Value

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.

See Also

Search ParseURL in MSDN Library.

Example

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