Export (0) Print
Expand All
0 out of 1 rated this helpful - Rate this topic

HTTP_REQUEST_HEADERS structure

The HTTP_REQUEST_HEADERS structure contains headers sent with an HTTP request.

Syntax


typedef struct _HTTP_REQUEST_HEADERS {
  USHORT               UnknownHeaderCount;
  PHTTP_UNKNOWN_HEADER pUnknownHeaders;
  USHORT               TrailerCount;
  PHTTP_UNKNOWN_HEADER pTrailers;
  HTTP_KNOWN_HEADER    KnownHeaders[HttpHeaderRequestMaximum];
} HTTP_REQUEST_HEADERS, *PHTTP_REQUEST_HEADERS;

Members

UnknownHeaderCount

A number of unknown headers sent with the HTTP request. This number is the size of the array pointed to by the pUnknownHeaders member.

pUnknownHeaders

A pointer to an array of HTTP_UNKNOWN_HEADER structures. This array contains one structure for each of the unknown headers sent in the HTTP request.

TrailerCount

This member is reserved and must be zero.

pTrailers

This member is reserved and must be NULL.

KnownHeaders

Fixed-size array of HTTP_KNOWN_HEADER structures. The HTTP_HEADER_ID enumeration provides a mapping from header types to array indexes. If a known header of a given type is included in the HTTP request, the array element at the index that corresponds to that type specifies the header value. Those elements of the array for which no corresponding headers are present contain a zero-valued RawValueLength member. Use RawValueLength to determine the end of the header string pointed to by pRawValue, rather than relying on the string to have a terminating null.

Requirements

Minimum supported client

Windows Vista, Windows XP with SP2 [desktop apps only]

Minimum supported server

Windows Server 2003 [desktop apps only]

Header

Http.h

See also

HTTP Server API Version 1.0 Structures
HTTP_KNOWN_HEADER
HTTP_UNKNOWN_HEADER
HTTP_REQUEST

 

 

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.