I want to establish a connection between client and server in my app. I query this problem on website, it supply two solutions:
- Use the Apache
HttpClient
lib - Use the Java SDK
HttpConnection
class.
I wonder which one usually be used in common apps. Can they establish a safe or high-efficiency connection? If they can't finish the purpose, do I need use java socket to finish it by myself? Are there any existing libs now?
Sorry for that,this is my first time to use stackoverflow:),I just want to find a method of establishing a safe and high-efficiency connection,I don't want to compare httpclient with HttpConnection, which is better.