Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- string URI = "https://www.herofire.org/api/userlogin?";
- string myParameters = "username=" + textBox1.Text + "&password=" + textBox2.Text;
- string com = URI + myParameters;
- WebClient wc = new WebClient();
- wc.Headers[HttpRequestHeader.ContentType] = "application/x-www-form-urlencoded";
- string HtmlResult = wc.UploadString(URI, myParameters);
- string json = wc.DownloadString(com);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement