目录
//extrat the Host from input url //example: from https://skydrive.live.com/, extracted Host is "skydrive.live.com" public string extractHost(string url) { string domain = ""; if ((url != "") && (url.Contains("/"))) { string[] splited = url.Split('/'); domain = splited[2]; } return domain; }