Guest User

Untitled

a guest
Dec 13th, 2018
146
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.26 KB | None | 0 0
  1. WebClient client = new WebClient();
  2. string URI = "http://localhost:55999/token";
  3. string myParameters = "UserName=user&Password=user";
  4. client.Credentials = new NetworkCredential("user", "password");
  5. string HtmlResult = client.UploadString(URI, myParameters);
Add Comment
Please, Sign In to add comment