大网数据广告活动
Web服务器与PHP

HTTP_LOG_FIELD_ Constants (Http.h)

· 52CE 我爱测

Define the fields in the W3C log and the error logs.

The HTTP_LOG_FIELD_ constants define the fields in the W3C log and the error logs.

These constants are used in the HTTP_LOGGING_INFO structure.

HTTP_LOG_FIELD_DATE

The date on which the activity occurred.

HTTP_LOG_FIELD_TIME

The time, in coordinated universal time (UTC), at which the activity occurred.

HTTP_LOG_FIELD_CLIENT_IP

The IP address of the client that made the request.

HTTP_LOG_FIELD_USER_NAME

The name of the authenticated user who accessed your server. Anonymous users are indicated by a hyphen.

HTTP_LOG_FIELD_SITE_NAME

The name of the site on which the log file entry was generated.

HTTP_LOG_FIELD_COMPUTER_NAME

The name of the computer on which the log file entry was generated.

HTTP_LOG_FIELD_SERVER_IP

The IP address of the server on which the log file entry was generated.

HTTP_LOG_FIELD_METHOD

The requested action, for example, a get method.

HTTP_LOG_FIELD_URI_STEM

The target of the action, for example, Default.htm.

HTTP_LOG_FIELD_URI_QUERY

The query, if any, that the client was trying to perform. A Universal Resource Identifier (URI) query is necessary only for dynamic pages.

HTTP_LOG_FIELD_STATUS

The HTTP status code.

HTTP_LOG_FIELD_WIN32_STATUS

The Windows status code.

HTTP_LOG_FIELD_BYTES_SENT

The number, in bytes, sent by the server.

HTTP_LOG_FIELD_BYTES_RECV

The number, in bytes, received by the server.

HTTP_LOG_FIELD_TIME_TAKEN

The time, in milliseconds, of the action.

HTTP_LOG_FIELD_SERVER_PORT

The server port number that is configured for the service.

HTTP_LOG_FIELD_USER_AGENT

The application that the client used.

HTTP_LOG_FIELD_COOKIE

The content of the cookie sent or received, if any.

HTTP_LOG_FIELD_REFERER

The site that the user last visited. This site provided a link to the current site.

HTTP_LOG_FIELD_VERSION

The HTTP protocol version that the client used.

HTTP_LOG_FIELD_HOST

The host header name, if any.

HTTP_LOG_FIELD_SUB_STATUS

The substatus error code.

The following constants are used for HTTP error logging.

HTTP_LOG_FIELD_CLIENT_PORT

The client port number from which the request is received. This log field is only used for error logging.

HTTP_LOG_FIELD_URI

The URI received in the request including the query portion. This log field is only used for error logging.

HTTP_LOG_FIELD_SITE_ID

The application-specific numeric ID of the URL Group on which the request is routed. This log field is only used for error logging.

HTTP_LOG_FIELD_REASON

The error reason phrase. This log field is only used for error logging.

HTTP_LOG_FIELD_QUEUE_NAME

The name of the request queue to which the request is dispatched. This log field is only used for error logging.

HTTP_LOG_FIELD_STREAMID

The stream id.

Requirements

Requirement Value
Minimum supported client Windows Vista [desktop apps only]
Minimum supported server Windows Server 2008 [desktop apps only]
Header Http.h

See also

HTTP Server API Version 2.0 Constants

HTTP_LOGGING_INFO

HttpSetUrlGroupProperty

HttpSetServerSessionProperty

HttpQueryUrlGroupProperty

HttpQueryServerSessionProperty

Source: Microsoft Learn / Windows Win32 documentation by Microsoft and contributors. Documentation licensed CC BY 4.0. Code samples are covered by the MIT License. Converted from Markdown, with links normalized and embedded media omitted.

资料来源与适用范围

资料来源
Microsoft Learn / Windows Win32 documentation
适用范围
Windows Win32 API · Source date 05/31/2018
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY 4.0 (documentation), MIT (code samples)

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。