Hi, So should I set the status code using Apache Core like HttpResponse response = new BasicHttpResponse(HttpVersion.HTTP_1_1, 200, "OK"); response.setEntity(new StringEntity("Got it")); conn.sendResponseHeader(response); conn.sendResponseEntity(response); in server?
And check for the response in the client side? Am I on the right track? Thanks! On Friday, October 26, 2012 12:07:42 PM UTC+3, skink wrote: > > > > Archana wrote: > > Hi, > > > > If I use Sockets to post the JSON(instead of HTTP Post), how will I > > retrieve the JSON and status code in the server? > > Also with HTTP Post, I want to retreive both(the status code and JSON). > Can > > you please suggest an example? > > > > Thanks! > > > > > what status code? a status code is set by a server and can be read on > a client's side, not server's side > > pskink > -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en