IXMLHTTPRequest2::SetProperty method (msxml6.h)
Sets a property on an outgoing HTTP request.
Syntax
HRESULT SetProperty(
[in] XHR_PROPERTY eProperty,
[in] ULONGLONG ullValue
);
Parameters
[in] eProperty
The following values are valid:
Value | Meaning |
---|---|
|
Suppresses automatic prompts for user credentials |
|
Suppresses authentication that the HTTP stack performs on behalf of the application |
|
Sets all timeout values to the value given by ullValue, in milliseconds. |
|
Suppresses adding default headers to the HTTP request. |
|
Causes the HTTP stack to call the OnHeadersAvailable method with an interim redirecting status code. The OnHeadersAvailable method will be called again for additional redirects and the final destination status code. |
|
Suppresses cache reads and writes for the HTTP request.
This property is supported by the IXMLHTTPRequest3 interface. |
|
Causes the HTTP stack to provide HRESULTS with the underlying Win32 error code to the OnError method in case of failure.
This property is supported by the IXMLHTTPRequest3 interface. |
|
Causes the query string to be encoded in UTF-8 instead of ACP for the HTTP request.
This property is supported by the IXMLHTTPRequest3 interface. |
|
Suppresses certain certificate errors.
This property is supported by the IXMLHTTPRequest3 interface. |
[in] ullValue
Specifies the number of milliseconds that the application waits before timing out.
Value | Meaning |
---|---|
|
This parameter can be one of the values from the XHR_CRED_PROMPT enumeration type defined in the Msxml6.h header file.
|
|
This parameter can be one of the values from the XHR_AUTH enumeration type defined in the Msxml6.h header file.
|
|
The number of milliseconds, up to 0xFFFFFFFF, that the app waits before timing out. |
|
|
|
|
|
|
|
|
|
|
|
|
Return value
Returns S_OK on success.
Remarks
The SetProperty method on the IXMLHTTPRequest2 interface is extended on the IXMLHTTPRequest3 interface with new properties to support new scenarios:
- XHR_PROP_NO_CACHE – Suppresses cache reads and writes for the HTTP request.
- XHR_PROP_EXTENDED_ERROR – Causes the HTTP stack to provide HRESULTS with the underlying Win32 error code to the OnError method in case of failure.
- XHR_PROP_QUERY_STRING_UTF8 – Causes the query string to be encoded in UTF-8 instead of ACP for HTTP request.
- XHR_PROP_IGNORE_CERT_ERRORS – Suppresses certain server certificate errors.
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows 8 [desktop apps | UWP apps],MSXML 6.0 and later |
Minimum supported server | Windows Server 2012 [desktop apps | UWP apps] |
Target Platform | Windows |
Header | msxml6.h |