I'm trying to send data for this page by using HttpWebRequest class :
www.stage1.darotools.com/Quran.v1.admin/_FormsWizard/CreateForm.asp
but I faced a problem with the login authentication . heres my code :
System.Text.UTF8Encoding encoding = new System.Text.UTF8Encoding();
string postData = "ctlMessageID=" + 348;
postData += ("&ctlUserID=" + 7);
postData += ("&ctlTitle=" + 7);
postData += ("&ctlEmail=" + "rrawhi@gmail.com");
postData += ("&ctlIsSystem=" + 0);
postData += ("&ctlFormBody=");
postData += ("&ctlEnableCaptcha=");
postData += ("&ctlEmailAttachedFiles=");
postData += ("&ctlMailingList=");
postData += ("&ctlCommentaryTitle=" + 1);
postData += ("&ctlIsActive=" + 2);
postData += ("&ctlCommentaryPersonID=" + 6);
postData += ("&ctlOrderKey=");
postData += ("&Commentary_TextControl_html=" + "aaaaaaaaaaaa");
postData += ("&controlValue4=" + 666666);
postData += ("&ctlLanguageID=" + 1);
postData += ("&ctlAya=" + 349);
postData += ("&PathInfo=" + "dbsFramed, dbsFramed");
postData += ("&Caller=" + "rawhi");
byte[] data = encoding.GetBytes(postData);
// Prepare web request...
HttpWebRequest myRequest = (HttpWebRequest)WebRequest.Create("http://stage1.darotools.com/Quran.v1.admin/_FormsWizard/CreateForm.asp");
myRequest.Method = "POST";
myRequest.ContentType = "application/x-www-form-urlencoded";
myRequest.ContentLength = data.Length;
Stream newStream = myRequest.GetRequestStream();
// Send the data.
newStream.Write(data, 0, data.Length);
newStream.Close();
And this is the Login page :
www.stage1.darotools.com/Quran.v1.admin/Login.asp
Thanks in advance.