I'm trying to send some POST data with the .NET WebClient class as following:
WebClient objWebClient = new WebClient();
NameValueCollection objNameValueCollection = new NameValueCollection();
objNameValueCollection.Add("variable1", value1);
objNameValueCollection.Add("variable2", value2);
objNameValueCollection.Add("variable3", value3);
byte[] bytes = objWebClient.UploadValues(objURI, "POST", objNameValueCollection);
MessageBox.Show(Encoding.ASCII.GetString(bytes));
But when I print the POST values in PHP with
var_dump($_POST)
I'll get an empty string.
What I'm doing wrong here? Why are the POST values obviously not submitted to the PHP script?
Thanks in advance for any ideas Andreas
