Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private void btnChangeStatus_Click(object sender, EventArgs e)
- {
- HttpWebRequest request = (HttpWebRequest) WebRequest.Create("https://s.whatsapp.net/client/iphone/u.php");
- request.KeepAlive = false;
- request.ProtocolVersion = HttpVersion.Version10;
- request.Method = "POST";
- request.UserAgent = "User-Agent:WhatsApp/2.6.7 iPhone_OS/5.0.1 Device/Unknown_(iPhone4,1)";
- byte[] bytes = Encoding.ASCII.GetBytes("cc=31&me=" + Uri.EscapeDataString(this.txtPhoneNumber.Text) + "&s=" + Uri.EscapeDataString(this.txtNewStatus.Text));
- request.ContentType = "application/x-www-form-urlencoded";
- request.ContentLength = bytes.Length;
- Stream requestStream = request.GetRequestStream();
- requestStream.Write(bytes, 0, bytes.Length);
- requestStream.Close();
- HttpWebResponse response = (HttpWebResponse) request.GetResponse();
- MessageBox.Show("Status has been changed to: " + this.txtNewStatus.Text);
- }
Advertisement
Add Comment
Please, Sign In to add comment