Windows Dev Center

EN
Il contenuto non è disponibile nella lingua di destinazione, ma solo in inglese.

HttpPrepareUrl function

The HttpPrepareUrl function parses, analyzes, and normalizes a non-normalized Unicode or punycode URL so it is safe and valid to use in other HTTP functions.

Syntax


HTTPAPI_LINKAGE ULONG WINAPI HttpPrepareUrl(
  _Reserved_ PVOID  Reserved,
  _Reserved_ ULONG  Flags,
  _In_       PCWSTR Url,
  _Out_      PWSTR  *PreparedUrl
);

Parameters

Reserved

Reserved. Must be NULL.

Flags

Reserved. Must be zero.

Url [in]

A pointer to a string that represents the non-normalized Unicode or punycode URL to prepare.

Note  Free Url using HeapFree.
PreparedUrl [out]

On successful output, a pointer to a string that represents the normalized URL.

Return value

If the function succeeds, it returns ERROR_SUCCESS.

If the function fails, it returns one of the following or a system error code defined in WinError.h.

Requirements

Minimum supported client

Windows 8 [desktop apps only]

Minimum supported server

Windows Server 2012 [desktop apps only]

Header

Http.h

Library

Httpapi.lib

DLL

Httpapi.dll

 

 

Aggiunte alla community

AGGIUNGI
Mostra:
© 2015 Microsoft