[
https://issues.apache.org/jira/browse/HTTPCLIENT-724?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Oleg Kalnichevski resolved HTTPCLIENT-724.
------------------------------------------
Resolution: Invalid
On my cable line I get the document in less then a second WITH logging on. The
server sends the content delimited with Content-Length, not chunked, though. I
have no idea how to force it to use chunk coding. As I said before performance
tests against a very busy remote site are just meaningless.
===
HttpParams params = new BasicHttpParams();
HttpProtocolParams.setVersion(params, HttpVersion.HTTP_1_1);
HttpProtocolParams.setContentCharset(params, "UTF-8");
HttpProtocolParams.setUserAgent(params, "Apache-HttpClient/4.0");
HttpConnectionParams.setStaleCheckingEnabled(params, true);
DefaultHttpClient httpclient = new DefaultHttpClient(params);
HttpGet httpget = new
HttpGet("http://www.reuters.com/article/bankingfinancial-SP/idUSN2432828320070824");
long start = System.currentTimeMillis();
HttpResponse response = httpclient.execute(httpget);
HttpEntity entity = response.getEntity();
if (entity != null) {
entity.consumeContent();
}
long finish = System.currentTimeMillis();
System.out.println(finish - start + " ms");
===
[DEBUG] headers - >> GET /article/bankingfinancial-SP/idUSN2432828320070824
HTTP/1.1
[DEBUG] headers - >> Host: www.reuters.com
[DEBUG] headers - >> Connection: Keep-Alive
[DEBUG] headers - >> User-Agent: Apache-HttpClient/4.0
[DEBUG] headers - << HTTP/1.1 200 OK
[DEBUG] headers - << Date: Tue, 25 Dec 2007 15:24:17 GMT
[DEBUG] headers - << Server: Apache
[DEBUG] headers - << Age: 106
[DEBUG] headers - << Content-Length: 75933
[DEBUG] headers - << Keep-Alive: timeout=2, max=100
[DEBUG] headers - << Connection: Keep-Alive
[DEBUG] headers - << Content-Type: text/html;charset=ISO-8859-1
959 ms
===
Feel free to re-open the issue if you can provide more substantial data backing
your assertion.
Oleg
> HttpClient much slower than browser
> -----------------------------------
>
> Key: HTTPCLIENT-724
> URL: https://issues.apache.org/jira/browse/HTTPCLIENT-724
> Project: HttpComponents HttpClient
> Issue Type: Improvement
> Components: HttpClient
> Affects Versions: 3.1 Final
> Environment: XP
> Reporter: Manoj
> Fix For: 4.0 Beta 1
>
> Attachments: HttpClient 4.0 Reuters.pcap
>
>
> This is continuation of my post in the mailing list "Performance Issues with
> Transfer-Encoding chunked".
> Three files are uploaded here:
> a) Wirelog
> b) WireShark log of downloading with HttpClient
> c) WireShark log of downloading with IE
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]