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.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Ravi ShekharRank #673 · 3.6K reputationPosted Jul 5, 2014, 1:33 AM EDT
Through your code and click automatically on generate new ??
m i right??
Bhupendra25 reputationPosted Jul 5, 2014, 1:38 AM EDT
Ravi ShekharRank #673 · 3.6K reputationPosted Jul 5, 2014, 1:43 AM EDT
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
Bhupendra25 reputationPosted Jul 5, 2014, 2:26 AM EDT
Anupam SinghRank #643 · 3.7K reputationPosted Jul 5, 2014, 2:31 AM EDT
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();
Bhupendra25 reputationPosted Jul 5, 2014, 2:40 AM EDT
Anupam SinghRank #643 · 3.7K reputationPosted Jul 5, 2014, 3:09 AM EDT
Bhupendra25 reputationPosted Jul 5, 2014, 3:15 AM EDT