我想通过POST从android发送到php服务器的PHP数组,我有这个代码
HttpClient httpclient = new DefaultHttpClient();
HttpPost httppost = new HttpPost(url);
StringEntity dades = new StringEntity(data);
httppost.setEntity(dades);
// Execute HTTP Post Request
HttpResponse response = httpclient.execute(httppost);
HttpEntity resEntity = response.getEntity();
return resEntity.getContent();
Run Code Online (Sandbox Code Playgroud)
我认为php数组可能会进入
StringEntity dades = new StringEntity(data);
(数据是php数组).谁能帮我?