I use Jersey to send a GET request:
Client client = Client.create();
WebResource webResource = client.resource(uri);
ClientResponse res = webResource.queryParams(params).get(ClientResponse.class);
//hangs out forever if uri returns big data(maybe > 2Mb, since those code run normally with about 1Mb data)
String result = res.getEntity(String.class);
The application is running on Tomcat 7. Do I need to config anything?
Any help would be much appreciated.