Just had a similar problem. Note your host name is "http://s3.amazonaws.com"
.
The actual name of the host is "s3.amazonaws.com"
. The "http://"
part specifies the protocol. The class HTTPClientSession
is only to be used for the http protocol anyway.
In my case, stripping off the "http://"
and just using the actual host name worked correctly: "s3.amazonaws.com"
:
HTTPClientSession session("s3.amazonaws.com");
(Well, in my case it was "http://ws.audioscrobbler.com"
, but that's beside the point). Probably too late to find out if this was really the answer to your problem, the error does look a bit different to mine, but hopefully it might help someone arriving here through search, as I did.