Search...

Tuesday, December 6, 2011

How to display the HttpResponse response on console in android

         HttpResponse response = httpclient.execute(request);


         ByteArrayOutputStream v2 = new ByteArrayOutputStream();
        response.getEntity().writeTo(v2);
        System.out.println("----Response------------------------------------");
        System.out.println(v2.toString());
        System.out.println("----------------------------------------");
     

No comments:

Post a Comment