removed the usage of deprecated interfaces in httpclient
swtiched to URIBuilder to build POST requests
added authorization on post requests when credentials are set (patch by Fabian Cretton)