Click or drag to resize

NScrapeExtensionsGetResponseText Method

Reads an HttpWebResponse as plain text.

Namespace:  NScrape
Assembly:  NScrape (in NScrape.dll) Version: 0.4.1.0
Syntax
public static string GetResponseText(
	this HttpWebResponse webResponse,
	Encoding encoding = null
)

Parameters

webResponse
Type: System.NetHttpWebResponse
The HttpWebResponse to read.
encoding (Optional)
Type: System.TextEncoding
The encoding to be used. If omitted, the encoding specified in the web response shall be used.

Return Value

Type: String
A String that represents the text of an HttpWebResponse.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type HttpWebResponse. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
See Also