Mono Class Library: System.Net.HttpWebRequest Overview | Members

System.Net.HttpWebRequest.GetResponse Method

Returns a response to an Internet request. [Edit]

public override WebResponse GetResponse ()

Returns

A System.Net.WebResponse containing the response from the Internet resource requested by the current instance. [Edit]

Exceptions

TypeReason
System.Net.ProtocolViolationExceptionThe HttpWebRequest.ContentLength property of the current instance is not set. [Edit]
System.Net.WebException

HttpWebRequest.Abort was previously called.

-or-

The timeout period for the request expired.

-or-

An error occurred while processing the request.

[Edit]

Remarks

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 .

[Edit]

Requirements

Namespace: System.Net
Assembly: System (in System.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0