How to set a postvar's name in a httprequest?
I need to reach a webservice which respondss to the postvar "data".
How do i set this name in c# with a httprequest...
this is what i got:

               

                UTF8Encoding encoding = new UTF8Encoding();
                byte[] data = encoding.GetBytes(postData); 

                HttpWebRequest myRequest =
                  (HttpWebRequest)WebRequest.Create("http://secreturl/jubidubb.php");
                myRequest.Method = "POST";
                myRequest.ContentType = "application/x-www-form-urlencoded";
                myRequest.ContentLength = data.Length;
                myRequest.KeepAlive = true;
                Stream newStream = myRequest.GetRequestStream();
                

                newStream.Write(data, 0, data.Length);
                newStream.Close();

                // The response
                WebResponse response = myRequest.GetResponse();



How to set a postvar's name in a httprequest?
===

I need to reach a webservice which respondss to the postvar "data".
How do i set this name in c# with a httprequest...
this is what i got:

               

                UTF8Encoding encoding = new UTF8Encoding();
                byte[] data = encoding.GetBytes(postData); 

                HttpWebRequest myRequest =
                  (HttpWebRequest)WebRequest.Create("http://secreturl/jubidubb.php");
                myRequest.Method = "POST";
                myRequest.ContentType = "application/x-www-form-urlencoded";
                myRequest.ContentLength = data.Length;
                myRequest.KeepAlive = true;
                Stream newStream = myRequest.GetRequestStream();
                

                newStream.Write(data, 0, data.Length);
                newStream.Close();

                // The response
                WebResponse response = myRequest.GetResponse();


