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

System.Net.HttpWebResponse.GetResponseStream Method

Returns a System.IO.Stream for reading the body of the response from the server. [Edit]

public override System.IO.Stream GetResponseStream ()

Returns

A System.IO.Stream containing the body of the response. [Edit]

Exceptions

TypeReason
ObjectDisposedExceptionThe current instance has been disposed. [Edit]

Remarks

The HttpWebResponse.GetResponseStream method returns the data stream from the requested Internet resource.

Note:

Call either the System.IO.Stream.Close or HttpWebResponse.Close method to close the stream and release the connection for reuse. It is not necessary to call both System.IO.Stream.Close and HttpWebResponse.Close , but doing so does not cause an error. Failure to close the stream might cause an application to run out of connections.

This method overrides WebResponse.GetResponseStream .

[Edit]

Requirements

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