Hi! I still cannot understand how to handle properly chuncked encoding. It seems that AndroidHttpClient do that automatically but it still does not work on some configurations...
If anyone have a clue, i'll take it with pleasure. On Wednesday, November 7, 2012 11:25:02 AM UTC+1, Thomas Bouron wrote: > > Oh wait! You're right, the JSON reponses > 8KB are chuncked encoding! > I didn't notice that before! > > So how to handle that properly? > > On Wednesday, November 7, 2012 10:26:57 AM UTC+1, Nikolay Elenkov wrote: >> >> On Wed, Nov 7, 2012 at 5:39 PM, Thomas Bouron <[email protected]> wrote: >> > Hi. >> > >> > Thank you very much for giving me your code! Unfortunately, I got the >> same >> > behavior which is: >> > >> > For JSON reponse < 8KB: It works >> > For JSON reponse > 8KB: It doesn't work. To be more accurate, it >> returns me >> > a response with a statusCode = 200 but the entity.gertContentLenght() = >> -1 >> > and when i try to read the InputStream, it throws me an >> > SocketTimeoutException after a while (well, the defined timeout) >> > >> > I seriously don't understand what is going on... >> > >> >> Chunked encoding? How do captured responses look in the two cases? >> > -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

