webclient提交并接受返回

string url = "http://yoowiki.com/check.php?cmd=add&username=" + this.txt_userName.Text + "&password=" + System.Web.Security.FormsAuthentication.HashPasswordForStoringInConfigFile(this.txt_pwd.Text, "MD5").ToLower() + "&email=" + this.txt_userName.Text + "&ip=60.190.138.175&key=wrdhgahd58oeqj0d";
        WebClient client = new WebClient();
        Stream strm = client.OpenRead(url);
        StreamReader sr = new StreamReader(strm);
        string line;
        line = sr.ReadLine();
        if (line != null)
        {
            if (line == "0")
            {
                //Wiki段注册成功
                Response.Write("成功了");
            }
        }
        strm.Close();
原文地址:https://www.cnblogs.com/feifeiwzh/p/1503067.html