Invoking a URL - c#

后端 未结 5 2041
渐次进展
渐次进展 2021-01-11 21:27

I m trying to invoke a URL in C#, I am just interested in invoking, and dont care about response. When i have the following, does it mean that I m invoking the URL?

5条回答
  •  再見小時候
    2021-01-11 21:35

    You can use this:

    string address = "http://www.yoursite.com/page.aspx";
    using (WebClient client = new WebClient())
    {
        client.DownloadString(address);
    }
    

提交回复
热议问题