Returns a response to an Internet request.
A System.Net.WebResponse containing the response from the Internet resource requested by the current instance.
Type Reason System.Net.ProtocolViolationException The HttpWebRequest.ContentLength property of the current instance is not set. System.Net.WebException HttpWebRequest.Abort was previously called.
-or-
The timeout period for the request expired.
-or-
An error occurred while processing the request.
Note:This method returns a System.Net.WebResponse instance containing the response from the Internet resource requested by the current instance. The actual instance returned is an instance of System.Net.HttpWebResponse , and can be typecast to that class to access HTTP-specific properties.
This method overrides WebRequest.GetResponse .
Namespace: System.Net
Assembly: System (in System.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0