public string send_POST(string url, string post) { string Response_POST = "", StrNewValue; try { HttpWebRequest req = (HttpWebRequest)WebRequest.Create(url); req.Method = "POST"; req.UserAgent = "Chrome/15.0.874.121"; req.ContentType = "application/x-www-form-urlencoded"; StrNewValue = post; req.ContentLength = StrNewValue.Length; StreamWriter Soup = new StreamWriter(req.GetRequestStream(), System.Text.Encoding.ASCII); Soup.Write(StrNewValue); Soup.Close(); StreamReader stin3 = new StreamReader(req.GetResponse().GetResponseStream()); Response_POST = stin3.ReadToEnd(); stin3.Close(); } catch { } return Response_POST; }
send_POST("http://" + Data.IP + "/prison/universal.php?voteForFriend", "method=voteForFriend&user=" + fake[0] + "&key=" + fake[1] + "&friend_uid=" + log + "&vote=2" + "&model_id=1" + "&sex=0");