private void button1_Click(object sender, EventArgs e) { int i; string str; string str2; string[] lines = richTextBox1.Lines; for (i = 0; i < lines.Length; i++) { str = lines[i].Substring(0, lines[i].IndexOf(":")); str2 = lines[i].Substring(lines[i].IndexOf(":") + 1, (lines[i].Length - lines[i].IndexOf(":")) - 1); string s = "method=voteForFriend&friend%5Fuid=" + textBox1.Text + "&key=" + str2 + "&model%5Fid=1&sex=0&user=" + str + "&vote=5"; HttpWebRequest Request = (HttpWebRequest)WebRequest.Create("http://109.234.155.197/prison/universal.php?voteForFriend"); Request.UserAgent = "Opera/9.80"; Request.Method = "Post"; Request.ContentType = "application/x-www-form-urlencoded"; byte[] bytes = Encoding.ASCII.GetBytes(s); Request.ContentLength = bytes.Length; Request.GetRequestStream().Write(bytes, 0, bytes.Length); Request.GetRequestStream().Close(); } }