I'm trying to write a small code in C# that will start by logging into the zen-cart admin. I tried to start with:
Code:
HttpWebRequest request = WebRequest.Create("http://mywebiste/admin") as HttpWebRequest; 
using (HttpWebResponse response = request.GetResponse() as HttpWebResponse)  
             {  
                 // Get the response stream  
                 StreamReader reader = new StreamReader(response.GetResponseStream());  
               
                 // Console application output  
                 Console.WriteLine(reader.ReadToEnd());  
             }
But what I get is the login page and I don't know how to enter the username and password. Is it possible to set zen-cart to accept a url in the format http://username : password@mywebsite ?

Any assistance will be greatly appreciated...

thanks...

Y.