Funktionreferenz


_WinAPI_UrlFixup


Attempts to correct a URL whose protocol identifier is incorrect

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

Parameter

$sUrl The URL to be corrected.

Rückgabewert

Success: The corrected URL, or the original URL if no correction was needed.
Failure: Sets the @error flag to non-zero, @extended flag may contain the HRESULT error code.

Bemerkungen

None.

Siehe auch

Suche nach UrlFixupW in der MSDN Bibliothek.

Beispiel

#include <WinAPIShPath.au3>

Local $asUrl[3] = ['http://www.microsoft.com', 'htps:\\www.microsoft.com', 'http:www.microsoft.com']

For $i = 0 To 2
    ConsoleWrite(StringFormat('%-27s' & _WinAPI_UrlFixup($asUrl[$i]), $asUrl[$i]) & @CRLF)
Next