hc-httpclient-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Khare, Aparna" <aparna.kh...@sap.com>
Subject RE: EntityUtils.ToString() is too slow
Date Sat, 23 Jul 2016 18:33:22 GMT
Hi Bernd,

  The response is big which I get from the server  5MB it’s a json response .The chartset
is UTF-8.
Also the time taken to read response is around 7 seconds .

Can you tell me how can I check first and last byte.

I need to improve the for reading the response and then later I have parse the json response.
Any suggestion and help would be great

Thanks,
aparna

From: ecki@zusammenkunft.net [mailto:ecki@zusammenkunft.net]
Sent: Friday, July 22, 2016 11:39 PM
To: Khare, Aparna <aparna.khare@sap.com>; httpclient-users@hc.apache.org
Subject: AW: EntityUtils.ToString() is too slow

You need to provide more info, how big is the response, what charset, how long does the server
take to provide the first and last byte? I would suspect the server takes 4,832s.


Gruss
Bernd
--
http://bernd.eckenfels.net
From Win 10 Mobile

Von: Khare, Aparna<mailto:aparna.khare@sap.com>
Gesendet: Freitag, 22. Juli 2016 14:54
An: httpclient-users@hc.apache.org<mailto:httpclient-users@hc.apache.org>
Betreff: EntityUtils.ToString() is too slow

Dear All,

   I'm trying to use EntityUtils.toString(responseEntity, RuntimeAdapterConstants.UTF_8)

Where responseEntity is string to read the json response this is taking around 5 seconds.

Can you please help how I can improve the turnaround time or use some other api

Thanks,
Aparna

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message