static void Main(string[] args) { IServer googleServer = new GoogleServer("https://www.google.com/username=admin&password=pass"); googleServer.ProcessRequest(); Console.ReadKey(); }
public void ProcessRequest() { if (googleServer == null) { googleServer = new GoogleServer(Url); } string[] credentials = Url.Split(new string[] { "username="******"password="******"admin" && password == "password") { Console.WriteLine("Connecting to " + Url); } else { Console.WriteLine("connection trouble"); } }