IHttpNegotiate::BeginningTransaction (Windows CE 5.0)
This method notifies the client of the URL being bound to at the beginning of an HTTP transaction.
HRESULT BeginningTransaction(LPCWSTRszURL,DWORDdwReserved,LPCWSTRszHeaders,LPWSTR* pszAdditionalHeaders);
Parameters
- szURL
[in] Address of a string value that contains the URL for this HTTP transaction. - dwReserved
[in] Reserved. - szHeaders
[in] Address of a string value that contains the current request headers. - pszAdditionalHeaders
[out] Address of a pointer to a string variable that contains additional headers to append to the HTTP request. If these conflict with existing values in szHeaders, the new request headers take precedence. If pszAdditionalHeaders is set to NULL, no headers are added to the HTTP request.
Return Values
This method returns one of the values shown in the following table.
Value | Description |
---|---|
S_OK | The HTTP transaction completed successfully and any additional headers specified have been appended. |
E_ABORT | The HTTP transaction has been terminated. |
E_INVALIDARG | A parameter is invalid. |
Remarks
The URL moniker calls this method before sending an HTTP request. It notifies the client of the URL being bound to at the beginning of the HTTP transaction. It also allows the client to add additional headers, such as Accept-Language, to the request.
Requirements
OS Versions: Windows CE .NET 4.0 and later.
Header: Urlmon.h, Urlmon.idl.
Link Library: Urlmon.lib.
Send Feedback on this topic to the authors