<form onsubmit="return !(!this.PASSWORD.value||!this.USERNAME.value);" action="/login.html" method="post" name="loginform">
class Program { static void Main(string[] args) { string username = "####"; string password = "########"; HttpWebRequest request = (HttpWebRequest)WebRequest.Create("https://ftrpoker.com/login.html"); request.Method = "POST"; using (StreamWriter writer = new StreamWriter(request.GetRequestStream(), Encoding.ASCII)) { writer.Write("USERNAME=" + username + "&PASSWORD=" + password); } HttpWebResponse response = (HttpWebResponse)request.GetResponse(); //Retrieve your cookie that id's your session //response.Cookies using (StreamReader reader = new StreamReader(response.GetResponseStream())) Console.WriteLine(reader.ReadToEnd()); } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)