java - Apache http client or URLConnection -
this question has answer here:
i need download web page on android app , having hard time deciding whether use android apache http client or java's urlconnection.
any thoughts?
for things i'd httpclient
way go. there situations , edge cases i'd fall urlconnection
. examples of edge cases here , here
edit
similar question has been asked before: httpclient vs httpurlconnection. i assume find httpurlconnection
faster httpclient
built on top of standard java libraries. howeverhttpclient
code quicker , easier write , maintain. according comments below, core elements of httpclient
have been performance optimised.
if performance major concern best bet write 2 clients, 1 using each method, benchmark them both. if this, please let know results.
Comments
Post a Comment