I'm trying to retrieve the source of a site with WebClient.DownloadString, but when i debug the string I'm writing the source to it seems to cut off a part of the html source.
Code:
public string GetWebpageSource()
{
using (WebClient client = new WebClient())
{
client.Headers[HttpRequestHeader.UserAgent] = "Mozilla / 5.0(Windows NT 10.0; Win64; x64; rv: 44.0) Gecko / 20100101 Firefox / 44.0";
client.Encoding = Encoding.UTF8;
string htmlcode = client.DownloadString("http://2007.runescape.wikia.com/wiki/Bandos%20page%201");
return htmlcode;
}
}
So I'm wondering why it does that? If there's additional info needed, I will post it. Thanks for reading!