java - Apache http client or URLConnection -


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 httpurlconnection faster httpclient built on top of standard java libraries. however find httpclient 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

Popular posts from this blog

java - SNMP4J General Variable Binding Error -

windows - Python Service Installation - "Could not find PythonClass entry" -

Determine if a XmlNode is empty or null in C#? -