Use java.net package (available on Android) instead of Apache HttpComponents 

The `java.net` package is available on Android and is recommended over the outdated `org.apache.http` package. The final implementation is actually much simpler.

All tests pass successfully, and the Android test project runs flawlessly.