https://gist.githubusercontent.com/sandeep-kumar/5775004/raw/59a840764a7de431a4a0f3de1ef44679edff52c0/HTTPConnection.java
