do not assume SimpleHttpClient.openConnection(URL) is given an HTTP URL
Merge pull request #401 from groldan/master

Avoid classcast exceptions in SimpleHttpClient