HI, to explain more... a popup window will appear like "http://www.zoneedit.com/auth/" i'll be task to develop a program which will upload a file automatically on a given time without human intervention... I have d user & password but i dont know how to do it.... I made a lot of efforts but none is working... below is my coding i used.. private void btnUpload_Click(object sender, EventArgs e) { try { System.Net.ServicePointManager.CertificatePolicy = new MyPolicy(); string uploadData = "user=" + TxtUser.Text + "&password=" + TxtPassword.Text; ; ASCIIEncoding encoding = new ASCIIEncoding(); byte[] uploadByte = encoding.GetBytes(uploadData); // Create the HttpWebRequest and set its properties HttpWebRequest request = (HttpWebRequest)WebRequest.Create(TxtSite.Text); request.ContentLength = uploadData.Length; request.ContentType = "application/x-www-form-urlencoded"; request.Method = "POST"; request.Timeout = 20000; // Get a Stream from the HttpWebRequest and write login info to it Stream uploadStream = request.GetRequestStream(); uploadStream.Write(uploadByte, 0, uploadByte.Length); WebClient Client = new WebClient(); Client.UploadFile(TxtSite.Text, TxtFile.Text); } catch (Exception expx) { MessageBox.Show(expx.Message); } } tnx in advance
xxx