WebRequest.CreateHttp Method (Uri)
Initializes a new HttpWebRequest instance for the specified URI.
Assembly: System.Net (in System.Net.dll)
The request scheme specified in requestUri is the http or https scheme.
requestUri is null.
The caller does not have permission to connect to the requested URI or a URI that the request is redirected to.
The URI specified in requestUri is not a valid URI.
The method returns an instance of the HttpWebRequest class for the requestUri.
The method uses the requestUri parameter to create a new HttpWebRequest instance. If the method is successful, the AllowReadStreamBuffering property on the returned HttpWebRequest instance is set to false.
The .NET Framework includes support for the http:// and https:// URI schemes. Custom WebRequest descendants to handle other requests are registered with the RegisterPrefix method. The Create(Uri) method can be used to create a descendant of the WebRequest class for other schemes.
Silverlight for Windows PhoneThis member is present to support the .NET Compact Framework infrastructure in Silverlight for Windows Phone, and it is not intended to be used in your application code.
For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.