I looking to create a login form for an android application. I want to use a post method to send information to the server side where it is handle by a PHP file; which in tu
I would generally recommend URLConnection because it can get updated with the JDK. In one case we had a call that used an older version of HTTP Client which didn't support TLS v1.2.
However, I wouldn't use URLConnection directly, I would generally use a higher level API like JAX-RS Client or the wsimport Clients to connect to another site.