With Silverlight, you can specify whether the browser or the client provides HTTP handling for your Silverlight-based applications. By default, HTTP handling is performed by the browser and you must opt-in to client HTTP handling.
The following is a list of scenarios that you would typically specify client HTTP handling for.
- Using HTTP methods other than GET and POST.
- Using response status codes headers, response bodies in your application or for debugging purposes.
- Sending XML HTTP requests such as REST and SOAP messages.
- Manually managing cookies.
In addition to specifying whether to use browser or client HTTP handling, you can specify the scope for the handling. For example, you can specify HTTP handling for all messages, for a scheme (HTTP or HTTPS), for a particular domain, or for a single request object. Once you have specified the HTTP handling for a scheme or domain, you cannot change the HTTP handling for that domain or scheme. The following procedures describe how to specify browser or client HTTP handling, set the scope of the handling, and how to determine whether the browser or client is performing the handling for a request object.