Bugfix: set http connection/socket timeouts before issuing a request!

This breaks with null pointer exception because it expects timeouts to
be set already.