title: Get POST data on Webpage from Android-App?
body: <p>I am trying to output POST-data that I send from an android phone, however I cannot manage to get any output in my PHP file.
  This is my php code:</p>
  
  <pre><code>&lt;?php
    echo "POSTed data: '".$_POST['mydata']."'&lt;br&gt;";
    var_dump($_POST);
  ?&gt;
  </code></pre>
  
  <p>this is my android code (which seems to work fine)</p>
  
  <pre><code>HttpClient httpclient = new DefaultHttpClient(); 
  HttpPost httppost = new HttpPost("myurl.php");
  List&lt;NameValuePair&gt; nameValuePairs = new ArrayList&lt;NameValuePair&gt;(2);  
  nameValuePairs.add(new BasicNameValuePair("mydata", "12345"));  
  nameValuePairs.add(new BasicNameValuePair("stringData", "SomeData"));  
  httppost.setEntity(new UrlEncodedFormEntity(nameValuePairs));  
  
  // Execute HTTP Post Request  
  HttpResponse response = httpclient.execute(httppost);  
  String responseText = EntityUtils.toString(response.getEntity()); 
  toSendET.setText(responseText);  
  </code></pre>
  
  <p>Is it even possible to send POST data to an static PHP script via phone?</p>