I've written a code that set a downloaded HTML-document into the variable. But i don't need all the HTML-document, only first 200 bytes of it. I need to cancel the method 'System.Net.WebClient.DownloadString' when it saves the document enough.
try
{
WebClient webClient = new WebClient();
html = webClient.DownloadString("https://example.com/index.html");
} catch(Exception e) {
MessageBox.Show(e.Message);
}