我的 Android 手机上有此代码。
URI uri = new URI(url);
HttpPost post = new HttpPost(uri);
HttpClient client = new DefaultHttpClient();
HttpResponse response = client.execute(post);
我有一个在页面中加载的 asp.net webform 应用程序
Response.Output.Write("It worked");
我想从 HttpReponse 中获取此响应并将其打印出来。我该怎么做呢?
我试过response.getEntity().toString()
了,但它似乎只是打印出内存中的地址。
谢谢