我可以用 android 函数做到这一点:
我有像 JsonString 这样的帖子参数:
String parametrs = "{\"object\": \"parametr\"};
然后我设置连接,创建字符串实体并发出请求:
String url = "http://lalala.com/json/";
HttpPost request = new HttpPost(url);
StringEntity se = null;
...
se = new StringEntity(parametrs, "UTF-8");
...
request.setEntity(se);
String jsonString = null;
HttpParams httpParameters = new BasicHttpParams();
...
HttpClient httpClient = new DefaultHttpClient(httpParameters);
try
{
HttpResponse response = httpClient.execute(request);
......
我怎么能用春天做这件事?