Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Net;
- namespace SwiftLogin
- {
- class Program
- {
- static void Main(string[] args)
- {
- using (WebClient rbxLogin = new WebClient())
- {
- Console.Write("What is the username - ");
- string Username = Console.ReadLine();
- Console.Write("\n");
- Console.Write("What is the password - ");
- string Password = Console.ReadLine();
- rbxLogin.Headers.Add("Content-Type", "application/x-www-form-urlencoded");
- string rbxPost = rbxLogin.UploadString("https://api.roblox.com/v2/login", "username=" + Username + "&password=" + Password);
- string rbxData = rbxLogin.ResponseHeaders.ToString(); //.ToString();
- Console.WriteLine(rbxData);
- Console.ReadLine();
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement