Share via


WebRequestCreator.BrowserHttp Property

Microsoft Silverlight will reach end of support after October 2021. Learn more.

Gets an object that specifies browser HTTP handling for Web requests and responses.

Namespace:  System.Net.Browser
Assembly:  System.Windows (in System.Windows.dll)

Syntax

'Declaration
Public Shared ReadOnly Property BrowserHttp As IWebRequestCreate
public static IWebRequestCreate BrowserHttp { get; }

Property Value

Type: System.Net.IWebRequestCreate
An IWebRequestCreate object that specifies browser handling for Web requests and responses.

Remarks

By default, HTTP handling for Web requests and responses are handled by the browser.

When using browser HTTP handling, you cannot access cookies on the HttpWebRequest and HttpWebResponse objects. If you attempt to access cookies, an exception will be thrown.

After you specify client or browser HTTP handling for a particular scheme or domain, you cannot change how HTTP messages to the domain or scheme are handled. If you try to call RegisterPrefix a second time for the same domain or prefix, the method will return false to indicate the register operation was not successful.

Version Information

Silverlight

Supported in: 5, 4, 3

Platforms

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.

See Also

Reference

BrowserHttp