Public String runregisternoparam (string strregisterurl, string PARAM)
{
String strren = "";
Try
{
Cookiecontainer Container = new cookiecontainer ();
Httpwebrequest request = (httpwebrequest) webrequest. Create (strregisterurl + "? "+ PARAM );
Request. cookiecontainer = container;
Request. contenttype = "application/X-WWW-form-urlencoded ";
Request. method = "Post ";
Stream myrequeststream = request. getrequeststream ();
Streamwriter mystreamwriter = new streamwriter (myrequeststream, encoding. getencoding ("UTF-8 "));
Mystreamwriter. Write (PARAM );
// Write data to the request stream of httpwebrequest
Mystreamwriter. Close ();
Myrequeststream. Close ();
// Close the open object
Httpwebresponse myhttpwebresponse = (httpwebresponse) request. getresponse ();
// Create an httpwebresponse
Myhttpwebresponse. Cookies = container. getcookies (request. requesturi );
// Obtain the cookiecollection of a cookie set containing a URL
Stream myresponsestream = myhttpwebresponse. getresponsestream ();
Streamreader mystreamreader = new streamreader (myresponsestream, encoding. getencoding ("UTF-8 "));
Strren = mystreamreader. readtoend ();
// Read the data from the response stream of httpwebresponse
Mystreamreader. Close ();
Myresponsestream. Close ();
}
Catch (exception ex)
{
Throw ex;
}
Return strren;
}