winhttp.h header

This header is used by Windows HTTP Services (WinHTTP). For more information, see:

winhttp.h contains the following programming interfaces:

Functions

 
WinHttpAddRequestHeaders

Adds one or more HTTP request headers to the HTTP request handle. (WinHttpAddRequestHeaders)
WinHttpAddRequestHeadersEx

Adds one or more HTTP request headers to an HTTP request handle, allowing you to use separate name/value strings.
WinHttpCheckPlatform

The WinHttpCheckPlatform function determines whether the current platform is supported by this version of Microsoft Windows HTTP Services (WinHTTP).
WinHttpCloseHandle

The WinHttpCloseHandle function closes a single HINTERNET handle.
WinHttpConnect

The WinHttpConnect function specifies the initial target server of an HTTP request and returns an HINTERNET connection handle to an HTTP session for that initial target.
WinHttpCrackUrl

The WinHttpCrackUrl function separates a URL into its component parts such as host name and path.
WinHttpCreateProxyResolver

Creates a handle for use by WinHttpGetProxyForUrlEx.
WinHttpCreateUrl

Creates a URL from component parts such as the host name and path.
WinHttpDetectAutoProxyConfigUrl

Finds the URL for the Proxy Auto-Configuration (PAC) file.
WinHttpFreeProxyResult

The WinHttpFreeProxyResult function frees the data retrieved from a previous call to WinHttpGetProxyResult.
WinHttpFreeProxySettingsEx

Frees the data retrieved from a previous call to WinHttpGetProxySettingsResultEx.
WinHttpFreeQueryConnectionGroupResult

Frees the memory allocated by a previous call to WinHttpQueryConnectionGroup.
WinHttpGetDefaultProxyConfiguration

Retrieves the default WinHTTP proxy configuration from the registry.
WinHttpGetIEProxyConfigForCurrentUser

Retrieves the Internet Explorer proxy configuration for the current user.
WinHttpGetProxyForUrl

Retrieves the proxy data for the specified URL. (WinHttpGetProxyForUrl)
WinHttpGetProxyForUrlEx

Retrieves the proxy data for the specified URL. (WinHttpGetProxyForUrlEx)
WinHttpGetProxyResult

The WinHttpGetProxyResult function retrieves the results of a call to WinHttpGetProxyForUrlEx.
WinHttpGetProxySettingsEx

Retrieves extended proxy settings.
WinHttpGetProxySettingsResultEx

Retrieves the results of a call to WinHttpGetProxySettingsEx.
WinHttpOpen

Initializes, for an application, the use of WinHTTP functions and returns a WinHTTP-session handle.
WinHttpOpenRequest

The WinHttpOpenRequest function creates an HTTP request handle.
WinHttpQueryAuthSchemes

The WinHttpQueryAuthSchemes function returns the authorization schemes that are supported by the server.
WinHttpQueryConnectionGroup

Retrieves an enumeration of http connections and their GUIDs.
WinHttpQueryDataAvailable

Returns the amount of data, in bytes, available to be read with WinHttpReadData.
WinHttpQueryHeaders

The WinHttpQueryHeaders function retrieves header information associated with an HTTP request.
WinHttpQueryHeadersEx

Retrieves header information associated with an HTTP request; offers a way to retrieve parsed header name and value strings.
WinHttpQueryOption

The WinHttpQueryOption function queries an Internet option on the specified handle.
WinHttpReadData

The WinHttpReadData function reads data from a handle opened by the WinHttpOpenRequest function.
WinHttpReadDataEx

Reads data from a handle opened by the WinHttpOpenRequest function.
WinHttpReceiveResponse

The WinHttpReceiveResponse function waits to receive the response to an HTTP request initiated by WinHttpSendRequest.
WinHttpRegisterProxyChangeNotification

Registers a callback function that WinHTTP calls when the effective proxy settings change.
WinHttpResetAutoProxy

Resets the auto-proxy.
WinHttpSendRequest

Sends the specified request to the HTTP server. (WinHttpSendRequest)
WinHttpSetCredentials

The WinHttpSetCredentials function passes the required authorization credentials to the server.
WinHttpSetDefaultProxyConfiguration

Sets the default WinHTTP proxy configuration in the registry.
WinHttpSetOption

The WinHttpSetOption function sets an Internet option.
WinHttpSetStatusCallback

The WinHttpSetStatusCallback function sets up a callback function that WinHTTP can call as progress is made during an operation.
WinHttpSetTimeouts

Sets time-outs involved with HTTP transactions.
WinHttpTimeFromSystemTime

Formats a date and time according to the HTTP version 1.0 specification. (WinHttpTimeFromSystemTime)
WinHttpTimeToSystemTime

The WinHttpTimeToSystemTime function takes an HTTP time/date string and converts it to a SYSTEMTIME structure.
WinHttpUnregisterProxyChangeNotification

Unregisters a callback function that was registered by calling WinHttpRegisterProxyChangeNotification.
WinHttpWebSocketClose

Closes a WebSocket connection.
WinHttpWebSocketCompleteUpgrade

Completes a WebSocket handshake started by WinHttpSendRequest.
WinHttpWebSocketQueryCloseStatus

Retrieves the close status sent by a server.
WinHttpWebSocketReceive

Receives data from a WebSocket connection.
WinHttpWebSocketSend

Sends data over a WebSocket connection.
WinHttpWebSocketShutdown

Sends a close frame to a WebSocket server to close the send channel, but leaves the receive channel open.
WinHttpWriteData

The WinHttpWriteData function writes request data to an HTTP server.

Callback functions

 
WINHTTP_PROXY_CHANGE_CALLBACK

Represents an application-defined proxy change callback function.
WINHTTP_STATUS_CALLBACK

Represents an application-defined status callback function.

Structures

 
HTTP_VERSION_INFO

The HTTP_VERSION_INFO structure contains the global HTTP version.
URL_COMPONENTS

The URL_COMPONENTS structure contains the constituent parts of a URL. This structure is used with the WinHttpCrackUrl and WinHttpCreateUrl functions.
WINHTTP_ASYNC_RESULT

The WINHTTP_ASYNC_RESULT structure contains the result of a call to an asynchronous function. This structure is used with the WINHTTP_STATUS_CALLBACK prototype.
WINHTTP_AUTOPROXY_OPTIONS

The WINHTTP_AUTOPROXY_OPTIONS structure is used to indicate to the WinHttpGetProxyForURL function whether to specify the URL of the Proxy Auto-Configuration (PAC) file or to automatically locate the URL with DHCP or DNS queries to the network.
WINHTTP_CERTIFICATE_INFO

The WINHTTP_CERTIFICATE_INFO structure contains certificate information returned from the server. This structure is used by the WinHttpQueryOption function.
WINHTTP_CONNECTION_GROUP

Represents a connection group.
WINHTTP_CONNECTION_INFO

The WINHTTP_CONNECTION_INFO structure contains the source and destination IP address of the request that generated the response.
WINHTTP_CREDS

Contains user credential information used for server and proxy authentication. (WINHTTP_CREDS)
WINHTTP_CREDS_EX

Contains user credential information used for server and proxy authentication. (WINHTTP_CREDS_EX)
WINHTTP_CURRENT_USER_IE_PROXY_CONFIG

The WINHTTP_CURRENT_USER_IE_PROXY_CONFIG structure contains the Internet Explorer proxy configuration information.
WINHTTP_EXTENDED_HEADER

Represents an HTTP request header as a name/value string pair.
WINHTTP_HEADER_NAME

Represents an HTTP request header name.
WINHTTP_HOST_CONNECTION_GROUP

Represents a collection of connection groups.
WINHTTP_MATCH_CONNECTION_GUID

Represents the GUID of a connection, for purposes of connection-matching.
WINHTTP_PROXY_INFO

The WINHTTP_PROXY_INFO structure contains the session or default proxy configuration.
WINHTTP_PROXY_RESULT

The WINHTTP_PROXY_RESULT structure contains collection of proxy result entries provided by WinHttpGetProxyResult.
WINHTTP_PROXY_RESULT_ENTRY

The WINHTTP_PROXY_RESULT_ENTRY structure contains a result entry from a call to WinHttpGetProxyResult.
WINHTTP_PROXY_SETTINGS_EX

The WINHTTP_PROXY_SETTINGS_EX structure represents extended proxy settings.
WINHTTP_PROXY_SETTINGS_PARAM

The WINHTTP_PROXY_SETTINGS_PARAM structure represents extended proxy settings.
WINHTTP_QUERY_CONNECTION_GROUP_RESULT

Represents a collection of host connection groups.
WINHTTP_REQUEST_STATS

The WINHTTP_REQUEST_STATS structure contains a variety of statistics for a request.
WINHTTP_REQUEST_TIMES

The WINHTTP_REQUEST_TIMES structure contains a variety of timing information for an HTTP request.
WINHTTP_SECURITY_INFO

The WINHTTP_SECURITY_INFO structure contains a variety of timing information for an HTTP request.
WINHTTP_WEB_SOCKET_ASYNC_RESULT

The WINHTTP_WEB_SOCKET_ASYNC_RESULT includes the result status of a WebSocket operation.
WINHTTP_WEB_SOCKET_STATUS

The WINHTTP_WEB_SOCKET_STATUS enumeration includes the status of a WebSocket operation.

Enumerations

 
WINHTTP_PROXY_SETTINGS_TYPE

Defines constants that specify proxy settings types for extended proxy settings APIs.
WINHTTP_REQUEST_STAT_ENTRY

The WINHTTP_REQUEST_STAT_ENTRY enumeration lists the available types of request statistics.
WINHTTP_REQUEST_TIME_ENTRY

The WINHTTP_REQUEST_TIME_ENTRY enumeration lists the available types of request timing information.
WINHTTP_WEB_SOCKET_BUFFER_TYPE

The WINHTTP_WEB_SOCKET_BUFFER_TYPE enumeration includes types of WebSocket buffers.
WINHTTP_WEB_SOCKET_CLOSE_STATUS

The WINHTTP_WEB_SOCKET_CLOSE_STATUS enumeration includes the status of a WebSocket close operation.
WINHTTP_WEB_SOCKET_OPERATION

The WINHTTP_WEB_SOCKET_OPERATION enumeration includes the WebSocket operation type.