Condividi tramite


struttura HTTP_COOKED_URL (http.h)

La struttura HTTP_COOKED_URL contiene una stringa di richiesta url con codifica Unicode UTF-16 convalidata, canonica e con puntatori e lunghezze degli elementi. Questa è la stringa che l'API server HTTP corrisponde alle stringhe UrlPrefix registrate per instradare la richiesta in modo appropriato.

Sintassi

typedef struct _HTTP_COOKED_URL {
  USHORT FullUrlLength;
  USHORT HostLength;
  USHORT AbsPathLength;
  USHORT QueryStringLength;
  PCWSTR pFullUrl;
  PCWSTR pHost;
  PCWSTR pAbsPath;
  PCWSTR pQueryString;
} HTTP_COOKED_URL, *PHTTP_COOKED_URL;

Members

FullUrlLength

Dimensioni, in byte, dei dati a cui punta il membro pFullUrl , senza includere un carattere Null di terminazione.

HostLength

Dimensioni, in byte, dei dati a cui punta il membro pHost .

AbsPathLength

Dimensioni, in byte, dei dati a cui punta il membro pAbsPath .

QueryStringLength

Dimensioni, in byte, dei dati a cui punta il membro pQueryString .

pFullUrl

Puntatore all'elemento dello schema all'inizio dell'URL (deve essere "http://..." o "https://...").

pHost

Puntatore al primo carattere nell'elemento host, immediatamente dopo le barre doppie alla fine dell'elemento dello schema.

pAbsPath

Puntatore alla terza barra ("/") nella stringa. In una stringa UrlPrefix questa è la barra immediatamente precedente all'elemento relativeUri.

pQueryString

Puntatore al primo punto interrogativo (?) nella stringa o NULL se non è presente.

Commenti

Ad esempio, se pFullUrl è "http://www.fabrikam.com/path1/path2/file.ext?n1=v1& n2=v2", quindi pHost punta a "www.fabrikam", pAbsPath punta a "/path1/..." e pQueryString punta a "?n1=v1...".

Requisiti

   
Client minimo supportato Windows Vista, Windows XP con SP2 [solo app desktop]
Server minimo supportato Windows Server 2003 [solo app desktop]
Intestazione http.h

Vedi anche

Strutture dell'API server HTTP versione 1.0

HTTP_REQUEST