i want to send my data to the given website, please help me to do that. is it possible or not. website on which i want to pass data is http://eservice.dohms.gov.ae/pservices/CreatePID0.aspx
help me asap.
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
BhupendraPosted Jul 5, 2014, 7:15 AM
Anupam SinghPosted Jul 5, 2014, 7:09 AM
BhupendraPosted Jul 5, 2014, 6:40 AM
Anupam SinghPosted Jul 5, 2014, 6:31 AM
eg:
string URI = "http://eservice.dohms.gov.ae/pservices/CreatePID0.aspx";
string param = "param1=value1¶m2=value2"; // pass data param1 and param2 are txtbox names
WebClient wc = new WebClient();
wc.Headers[HttpRequestHeader.ContentType] = "application/x-www-form-urlencoded";
string result = wc.UploadData(URI, "POST",System.Text.Encoding.ASCII.GetBytes(param)); // it shoulm be ok 200
string finalresult= System.Text.Encoding.ASCII.GetString(result); // result
wc.Close();
BhupendraPosted Jul 5, 2014, 6:26 AM
Ravi ShekharPosted Jul 5, 2014, 5:43 AM
But web scrapping is strictly prohibited by the website owner company.
It is not very easiar. You can use fiddler (telerik product) to do scrapping.
Regards,
Ravi
BhupendraPosted Jul 5, 2014, 5:38 AM
Ravi ShekharPosted Jul 5, 2014, 5:33 AM
Through your code and click automatically on generate new ??
m i right??