我正在将价值从 android 手机发送到网站。该网站通过一些免费资源在线注册。
代码是,
public class HttpStorage extends AsyncTask{
protected void onPreExecute() {
super.onPreExecute();
}
protected void onPostExecute(Integer result) {
}
public void postData() {
HttpClient httpclient = new DefaultHttpClient();
HttpPost httppost = new
HttpPost("http://pavithrakrishnakumar.simplesite.com/");
try {
List <NameValuePair> nameValuePairs = new ArrayList<NameValuePair>();
nameValuePairs.add(new BasicNameValuePair("IDToken1", "username"));
nameValuePairs.add(new BasicNameValuePair("IDToken2", "password"));
httppost.setEntity(new UrlEncodedFormEntity(nameValuePairs));
HttpResponse response = httpclient.execute(httppost);
} catch (ClientProtocolException e) {
} catch (IOException e) {
}
}
@Override
protected Object doInBackground(Object... arg0) {
postData();
return null;
}
}
现在我在 android 端没有收到任何错误。如何检索上述站点中的值