摘要:private void Page_Load(object sender, System.EventArgs e)
{
string url1 = "http://csharp.xdowns.com";
string url2 = "http://csharp.xdowns.com/logo.gif";
Response.Write("<li>方法1:");
Response.Write(url1 + " 存在:" + UrlExistsUsingHttpWebRequest(url1).ToString());
Response.Write("<li>方法2:");
Response.Write(url1 + " 存在:" + UrlExistsUsingSockets(url1).ToString());
Response.Write (全文共2186字)——点击
此处阅读全文