XML HTTP Extended Request

Overview of the XML HTTP Extended Request technology.

To develop XML HTTP Extended Request, you need these headers:

For programming guidance for this technology, see:

Enumerations

 
XHR_AUTH

Specifies whether to allow authentication to be used to connect to a proxy or to connect to the HTTP server.
XHR_CERT_ERROR_FLAG

Defines flags that indicate server certificate errors during SSL negotiation with the server by handling the OnServerCertificateReceived method on the IXMLHTTPRequest3Callback interface.
XHR_CERT_IGNORE_FLAG

Defines flags that you can assign to an outgoing HTTP request to ignore certain certificate errors by calling the SetProperty method on the IXMLHTTPRequest3 interface.
XHR_COOKIE_FLAG

Defines a set of flags that you can assign to a cookie in the HTTP cookie jar by calling the SetCookie method or query from the HTTP cookie jar by calling the GetCookie method.
XHR_COOKIE_STATE

Specifies the state of the cookie.
XHR_CRED_PROMPT

Specifies whether to allow credential prompts to the user for authentication.
XHR_PROPERTY

Defines properties that you can assign to an outgoing HTTP request by calling the SetProperty method.

Functions

 
Abort

Cancels the current HTTP request.
GetAllResponseHeaders

Retrieves the values of all the HTTP response headers.
GetCookie

Gets a cookie associated with the specified URL from the HTTP cookie jar.
GetResponseHeader

Retrieves the value of an HTTP header from the response headers.
OnClientCertificateRequested

Occurs when a client receives a request for a client certificate during SSL negotiation with the server.
OnDataAvailable

Occurs when a client receives part of the HTTP response data from the server.
OnError

Occurs when an error is encountered or the request has been aborted.
OnHeadersAvailable

Occurs after an HTTP request has been sent to the server and the server has responded with response headers.
OnRedirect

Occurs when a client sends an HTTP request that the server redirects to a new URL.
OnResponseReceived

Occurs when a client has received a complete response from the server.
OnServerCertificateReceived

Occurs when a client receives certificate errors or a server certificate chain during SSL negotiation with the server.
Open

Initializes an IXMLHTTPRequest2 request and specifies the method, URL, and authentication information for the request. After calling this method, you must call the Send method to send the request and data, if any, to the server.
Send

Sends an HTTP request to the server asynchronously. On success, methods on the IXMLHTTPRequest2Callback interface implemented by the app are called to process the response.
SetClientCertificate

Sets a client certificate to be used to authenticate against the URL specified in the Open method.
SetCookie

Sets a cookie associated with the specified URL in the HTTP cookie jar.
SetCustomResponseStream

Provides a custom stream to replace the standard stream for receiving an HTTP response.
SetProperty

Sets a property on an outgoing HTTP request.
SetRequestHeader

Specifies the name of an HTTP header to be sent to the server along with the default request headers.

Interfaces

 
IXMLHTTPRequest2

Provides the methods and properties needed to configure and send HTTP requests and use callbacks to receive notifications during HTTP response processing. Note  This interface is supported on Windows Phone 8.1.  .
IXMLHTTPRequest2Callback

Defines callbacks that notify an application with an outstanding IXMLHTTPRequest2 request of events that affect HTTP request and response processing. Note  This interface is supported on Windows Phone 8.1.  .
IXMLHTTPRequest3

Provides the methods and properties needed to configure and send HTTP requests and use callbacks to receive notifications during HTTP response processing.
IXMLHTTPRequest3Callback

Defines callbacks that notify an application with an outstanding IXMLHTTPRequest3 request of events that affect HTTP request and response processing.

Structures

 
XHR_CERT

Defines a buffer that points to an encoded certificate.
XHR_COOKIE

Defines a cookie that you can add to the HTTP cookie jar by calling the SetCookie method or retrieve from the HTTP cookie jar by calling the GetCookie method.