Advertisement
Guest User

Untitled

a guest
Sep 29th, 2016
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.45 KB | None | 0 0
  1. string URI = "https://www.herofire.org/api/userlogin?";
  2.             string myParameters = "username=" + textBox1.Text + "&password=" + textBox2.Text;
  3.             string com = URI + myParameters;
  4.  
  5.             WebClient wc = new WebClient();
  6.             wc.Headers[HttpRequestHeader.ContentType] = "application/x-www-form-urlencoded";
  7.             string HtmlResult = wc.UploadString(URI, myParameters);
  8.             string json = wc.DownloadString(com);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement