Reading data from a website using C#

后端 未结 4 1731
终归单人心
终归单人心 2020-12-13 05:15

I have a webpage which has nothing on it except some string(s). No images, no background color or anything, just some plain text which is not really that long in length.

4条回答
  •  醉酒成梦
    2020-12-13 05:38

    Regarding the suggestion So I would suggest that you use WebClient and investigate the causes of the 30 second delay.

    From the answers for the question System.Net.WebClient unreasonably slow

    Try setting Proxy = null;

    WebClient wc = new WebClient(); wc.Proxy = null;

    Credit to Alex Burtsev

提交回复
热议问题