Author: barankaynak | Posted on: 7/16/2009 11:55:37 AM | Views : 271

Hi, I want to build a rss service from a web page. So I can learn changes of that page with my codes. I tried to post my username and password to the page but it doesn't work. My code is;



protected void Page_Load(object sender, EventArgs e) { MakeRequest("http://www.cawis.sakarya.edu.tr/", "frm_kullanici=xxxxx&frm_sifre=xxxxx"); } private void MakeRequest(string adres, string data) { Response.Clear(); String strresponse = ""; String postData = data; byte[] byteArray = Encoding.GetEncoding("ISO-8859-9").GetBytes(postData); HttpWebRequest request = (HttpWebRequest)WebRequest.Create(adres); request.KeepAlive = true; request.CookieContainer = new CookieContainer(); request.Method = "POST"; request.Acce ...

Go to the complete details ...