WinHTTP Functions

WinHTTP provides the following functions:

WinHttpAddRequestHeaders

Adds one or more HTTP request headers to the HTTP request handle.

WinHttpAddRequestHeadersEx

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

WinHttpCheckPlatform

Determines whether the current platform is supported by WinHTTP.

WinHttpCloseHandle

Closes a single HINTERNET handle.

WinHttpConnect

Specifies the initial target server of an HTTP request.

WinHttpCrackUrl

Separates a URL into its component parts, for example, host name and path.

WinHttpCreateProxyResolver

Creates a handle for use by WinHttpGetProxyForUrlEx.

WinHttpCreateUrl

Creates a URL from component parts, for example, the host name and path.

WinHttpDetectAutoProxyConfigUrl

Finds the URL for the Proxy Auto-Configuration (PAC) file. This function reports the URL of the PAC file, but it does not download the file.

WinHttpFreeProxyResult

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

Obtains the Internet Explorer (IE) proxy configuration for the current user.

WinHttpGetProxyForUrl

Retrieves the proxy information for the specified URL.

WinHttpGetProxyForUrlEx

Retrieves the proxy information for the specified URL.

WinHttpGetProxyResult

Retrieves the results of a call to WinHttpGetProxyForUrlEx.

WinHttpGetProxySettingsEx

Retrieves extended proxy settings.

WinHttpGetProxySettingsResultEx

Retrieves the results of a call to WinHttpGetProxySettingsEx.

WinHttpOpen

Initializes an application's use of the WinHTTP functions.

WinHttpOpenRequest

Creates an HTTP request handle.

WinHttpQueryAuthSchemes

Returns the authorization schemes that the server supports.

WinHttpQueryConnectionGroup

Retrieves a description of the current state of WinHttp's connections.

WinHttpQueryDataAvailable

Returns the number of bytes of data that are available immediately to be read with WinHttpReadData.

WinHttpQueryHeaders

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

Queries an Internet option on the specified handle.

WinHttpReadData

Reads data from a handle opened by the WinHttpOpenRequest function.

WinHttpReadDataEx

Reads data from a handle opened by the WinHttpOpenRequest function.

WinHttpReceiveResponse

Ends an HTTP request that is 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.

WinHttpSetCredentials

Passes the required authorization credentials to the server.

WinHttpSetDefaultProxyConfiguration

Sets the default WinHTTP proxy configuration in the registry.

WinHttpSetOption

Sets an Internet option.

WinHttpSetStatusCallback

Sets up a callback function that WinHTTP can call as progress is made during an operation.

WinHttpSetTimeouts

Sets the various time-outs that are involved with HTTP transactions.

WinHttpTimeFromSystemTime

Formats a date and time according to the HTTP version 1.0 specification.

WinHttpTimeToSystemTime

Takes an HTTP time/date string and converts it to a SYSTEMTIME structure.

WinHttpUnregisterProxyChangeNotification

Unregisters a callback function that was registered by calling WinHttpRegisterProxyChangeNotification.

WinHttpWriteData

Writes request data to an HTTP server.

WinHttpWebSocketClose

Closes a WebSocket connection.

WinHttpWebSocketCompleteUpgrade

Completes a WebSocket handshake started by WinHttpSendRequest.

WinHttpWebSocketQueryCloseStatus

Gets 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 connection.