Hi,
I build winform which try to read data/string from webpage.
In the following code I get no string in variable reply. however if I am using the comment url ("http://www.finviz.com/") I get string in the reply.
Can you help to see why I am not getting data in this code?
Thanks
Shlomi
private void button34_Click_1(object sender, EventArgs e)
{
WebClient web1 = new WebClient();
string url;
url = "http://www.finviz.com/screener.ashx?v=110&s=ta_topgainers&o=-price"; // This is not working
//url = "http://www.finviz.com/"; // This is working
WebClient client = new WebClient();
string reply = client.DownloadString(url);
}
5 Replies
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
shlomi gadolPosted Jun 29, 2015, 6:17 AM
shlomi gadolPosted Jun 29, 2015, 6:10 AM
Abrar Ahmad AnsariPosted Jun 29, 2015, 5:50 AM
shlomi gadolPosted Jun 29, 2015, 5:32 AM
Abrar Ahmad AnsariPosted Jun 29, 2015, 3:22 AM