Westwind Utilities
HttpClient.DownloadString
Table of Contents
On this page:

HttpClient.DownloadString

Returns the content of a URL as a string using a specified Encoding

public string DownloadString(string url, long bufferSize, 
			Encoding encoding)

Parameters

url

bufferSize
Internal download buffer size used to hold data chunks.

encoding
A .NET Encoding scheme or null to attempt sniffing from Charset.

Overloads

public Task<string> DownloadStringAsync(string url, long bufferSize, Encoding encoding)
public string DownloadStringPartial(string url, int size)

© West Wind Technologies, 2026 • updated: Jan 02, 2026
Comment or report problem with topic