WebRequest.CreateHttp Method (Uri)
Initializes a new HttpWebRequest instance for the specified URI.
Assembly: System (in System.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 HttpWebRequest class for the requestUri.method returns an instance of the
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.
Available since 8
Available since 4.5
Portable Class Library
Supported in: portable .NET platforms
Available since 4.0
Windows Phone Silverlight
Available since 7.0
Available since 8.1