refactored to use httpclientandroidlib instead of stock apache