Advertisement
Guest User

Untitled

a guest
May 6th, 2018
214
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.89 KB | None | 0 0
  1. using System;
  2. using System.Net;
  3.  
  4. namespace SwiftLogin
  5. {
  6. class Program
  7. {
  8. static void Main(string[] args)
  9. {
  10. using (WebClient rbxLogin = new WebClient())
  11. {
  12. Console.Write("What is the username - ");
  13. string Username = Console.ReadLine();
  14. Console.Write("\n");
  15. Console.Write("What is the password - ");
  16. string Password = Console.ReadLine();
  17. rbxLogin.Headers.Add("Content-Type", "application/x-www-form-urlencoded");
  18. string rbxPost = rbxLogin.UploadString("https://api.roblox.com/v2/login", "username=" + Username + "&password=" + Password);
  19. string rbxData = rbxLogin.ResponseHeaders.ToString(); //.ToString();
  20. Console.WriteLine(rbxData);
  21. Console.ReadLine();
  22. }
  23. }
  24. }
  25. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement